summaryrefslogtreecommitdiffhomepage
path: root/dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2024-10-28 07:01:58 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2024-10-28 07:01:58 +0100
commite0024d9ea688ee91a77abc0e28c5ea24b13ca67d (patch)
treea4e29bd919cbeccf2689e81a5d52bfc02f2a8b77 /dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S
parent36a3600ff7fc65a63b7386b7a680dbe8e647bd8f (diff)
IMP: Refactor whole source code to make it even.
- That is because previously the source was both in lowercase and lettercase. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S')
-rw-r--r--dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S b/dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S
new file mode 100644
index 00000000..67cf07c8
--- /dev/null
+++ b/dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S
@@ -0,0 +1,34 @@
+/* -------------------------------------------
+
+ Copyright ZKA Web Services Co.
+
+------------------------------------------- */
+
+.section .boot_hdr
+.align 4
+
+/* ZBA boot header begin */
+
+boot_hdr_mag:
+ .ascii "CB"
+boot_hdr_name:
+ // it has to match ten bytes.
+ .asciz "zbaosldr\0\0"
+boot_hdr_ver:
+ .word 0x104
+boot_hdr_proc:
+ .long bootloader_start
+
+/* ZBA boot header end */
+
+.extern bootloader_main
+.extern bootloader_stack
+
+.globl bootloader_start
+bootloader_start:
+ mflr 4 /* real address of .Laddr */
+ lwz 0,(bootloader_stack-bootloader_start)(4) /* stack address location */
+ mr 1,0 /* use user defined stack */
+
+ bl bootloader_main
+ blr