From f83e7bddcf24433adbfc9214e0f8f8139f8b6362 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 1 Dec 2024 18:41:41 +0100 Subject: FIX: Fixing ARM64 execution when booting from bootloader. FIX: Now works both for ARM64 and AMD64 EFI backends. TODO: The ACB backend needs to be done too. Signed-off-by: Amlal El Mahrouss --- dev/ZBAKit/src/HEL/ARM64/BootAPI.S | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dev/ZBAKit/src/HEL/ARM64/BootAPI.S (limited to 'dev/ZBAKit/src/HEL/ARM64/BootAPI.S') diff --git a/dev/ZBAKit/src/HEL/ARM64/BootAPI.S b/dev/ZBAKit/src/HEL/ARM64/BootAPI.S new file mode 100644 index 00000000..9a53dfc9 --- /dev/null +++ b/dev/ZBAKit/src/HEL/ARM64/BootAPI.S @@ -0,0 +1,12 @@ +.global rt_jump_to_address + +.text + +/** + @brief this function setups a stack and then jumps to + a function */ +rt_jump_to_address: + mov x19, x0 + mov sp, x2 + br x19 + -- cgit v1.2.3