From da70596895d8135e08f8caac6978117697b4c021 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 18 Aug 2024 21:39:29 +0200 Subject: [REFACTOR] Improved project structure. Signed-off-by: Amlal El Mahrouss --- dev/ZBA/Sources/HEL/POWER/CoreBootStartup.S | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev/ZBA/Sources/HEL/POWER/CoreBootStartup.S (limited to 'dev/ZBA/Sources/HEL/POWER/CoreBootStartup.S') diff --git a/dev/ZBA/Sources/HEL/POWER/CoreBootStartup.S b/dev/ZBA/Sources/HEL/POWER/CoreBootStartup.S new file mode 100644 index 00000000..502f415c --- /dev/null +++ b/dev/ZBA/Sources/HEL/POWER/CoreBootStartup.S @@ -0,0 +1,34 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +.section .boot_hdr +.align 4 + +/* NewBoot boot header begin */ + +boot_hdr_mag: + .ascii "CB" +boot_hdr_name: + // it has to match ten bytes. + .asciz "newosldr\0\0" +boot_hdr_ver: + .word 0x104 +boot_hdr_proc: + .long bootloader_start + +/* NewBoot 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 -- cgit v1.2.3