summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-06-21 19:33:07 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-06-21 19:33:21 +0200
commitb7c41e8d5dc490dd3a5d291d73b0ac382a50891c (patch)
treecaae63be4655b97b598411f12c772f059e27481f
parent4b92ffc5db94698129b40889cfc9a0363191a5ca (diff)
impl:
cherry pick from hw-*, add this fix. Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
-rw-r--r--Boot/Sources/HEL/AMD64/BootJump.S13
1 files changed, 11 insertions, 2 deletions
diff --git a/Boot/Sources/HEL/AMD64/BootJump.S b/Boot/Sources/HEL/AMD64/BootJump.S
index af278cc7..c2f03921 100644
--- a/Boot/Sources/HEL/AMD64/BootJump.S
+++ b/Boot/Sources/HEL/AMD64/BootJump.S
@@ -1,9 +1,18 @@
.global rt_jump_to_address
.text
-.code64
+.text
.intel_syntax noprefix
+/**
+ @brief this function setups a stack and then jumps to
+ a function */
rt_jump_to_address:
- jmp rcx
+ mov rdx, rsp
+ mov rdi, rcx
+ mov rdx, rbp
+ push rax
+ mov r8, rcx
+ call rdi
+ pop rax
ret