diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-18 11:20:00 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-18 11:20:00 +0100 |
| commit | f471cf287fdef515ced7357aca2f3f47f284998f (patch) | |
| tree | 65ade714b62f95dbe8a1a25be4b3a3c5c4abd079 /dev/Boot/src/HEL/ARM64/BootCB.S | |
| parent | bea589553fa9d33168e42bb83b77591fa8a0cad1 (diff) | |
REFACTOR: ZBAOSLDR to BOOTZ.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/src/HEL/ARM64/BootCB.S')
| -rw-r--r-- | dev/Boot/src/HEL/ARM64/BootCB.S | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev/Boot/src/HEL/ARM64/BootCB.S b/dev/Boot/src/HEL/ARM64/BootCB.S new file mode 100644 index 00000000..2d1ff60c --- /dev/null +++ b/dev/Boot/src/HEL/ARM64/BootCB.S @@ -0,0 +1,40 @@ +/* ------------------------------------------- + + Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. + +------------------------------------------- */ + +#ifdef __NE_COREBOOT__ + +.section .boot_hdr +.align 4 + +/* BootZ boot header begin */ + +boot_hdr_mag: + .ascii "CB" +boot_hdr_name: + // it has to match ten bytes. + .asciz "bootz\0\0" +boot_hdr_ver: + .word 0x104 +boot_hdr_proc: + .long bootloader_start + +/* BootZ boot header end */ + +.extern bootloader_main +.extern bootloader_stack + +.globl bootloader_start +bootloader_start: + adr x0, bootloader_stack + ldr x1, =bootloader_start + sub x0, x0, x1 + ldr x0, [x0] + mov sp, x0 + + bl bootloader_main + ret + +#endif // __NE_COREBOOT__
\ No newline at end of file |
