From e0024d9ea688ee91a77abc0e28c5ea24b13ca67d Mon Sep 17 00:00:00 2001 From: Amlal Date: Mon, 28 Oct 2024 07:01:58 +0100 Subject: 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 --- dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S (limited to 'dev/ZBAKit/src/HEL/POWER/CoreBootStartup.S') 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 -- cgit v1.2.3