summaryrefslogtreecommitdiffhomepage
path: root/dev/ZBAKit/src/HEL/ARM64/BootAPI.S
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-12-01 18:41:41 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-12-01 18:41:41 +0100
commitf83e7bddcf24433adbfc9214e0f8f8139f8b6362 (patch)
tree0447eddc2ebff291f96286847c238b4f907515b1 /dev/ZBAKit/src/HEL/ARM64/BootAPI.S
parentc62790f8f773a2f10464d2b1e0e286f2b3156712 (diff)
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 <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZBAKit/src/HEL/ARM64/BootAPI.S')
-rw-r--r--dev/ZBAKit/src/HEL/ARM64/BootAPI.S12
1 files changed, 12 insertions, 0 deletions
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
+