diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-12 09:31:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-12 09:31:36 +0100 |
| commit | 52f882514384c6be00752be0dca9bd511db9d450 (patch) | |
| tree | 17898d84b8f597304dc7b16076f51e4880a170d1 /dev/Boot/src/HEL/POWER/BootCB.S | |
| parent | 3ab08798d0f6f71ea00f8ea2485a8abe06f3893a (diff) | |
ADD: Qr Code algortihm from a vendor library which I forgot about from
the R&D.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/src/HEL/POWER/BootCB.S')
| -rw-r--r-- | dev/Boot/src/HEL/POWER/BootCB.S | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev/Boot/src/HEL/POWER/BootCB.S b/dev/Boot/src/HEL/POWER/BootCB.S new file mode 100644 index 00000000..a13b0cb1 --- /dev/null +++ b/dev/Boot/src/HEL/POWER/BootCB.S @@ -0,0 +1,34 @@ +/* ------------------------------------------- + + Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. + +------------------------------------------- */ + +.section .boot_hdr +.align 4 + +/* BootZ 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 + +/* BootZ 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 |
