From 52f882514384c6be00752be0dca9bd511db9d450 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 12 Feb 2025 09:31:36 +0100 Subject: ADD: Qr Code algortihm from a vendor library which I forgot about from the R&D. Signed-off-by: Amlal El Mahrouss --- dev/Boot/src/HEL/POWER/BootCB.S | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev/Boot/src/HEL/POWER/BootCB.S (limited to 'dev/Boot/src/HEL/POWER/BootCB.S') 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 -- cgit v1.2.3