From f3d931aa7cfaf96baef8383b59a8938779541ee7 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 15 Aug 2024 18:35:34 +0200 Subject: [IMP] Moved source code into dev/ folder. Signed-off-by: Amlal EL Mahrouss --- dev/Boot/Sources/HEL/POWER/.gitkeep | 0 dev/Boot/Sources/HEL/POWER/CoreBootStartup.S | 34 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 dev/Boot/Sources/HEL/POWER/.gitkeep create mode 100644 dev/Boot/Sources/HEL/POWER/CoreBootStartup.S (limited to 'dev/Boot/Sources/HEL/POWER') diff --git a/dev/Boot/Sources/HEL/POWER/.gitkeep b/dev/Boot/Sources/HEL/POWER/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/dev/Boot/Sources/HEL/POWER/CoreBootStartup.S b/dev/Boot/Sources/HEL/POWER/CoreBootStartup.S new file mode 100644 index 00000000..502f415c --- /dev/null +++ b/dev/Boot/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