diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-21 19:33:07 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-21 19:33:21 +0200 |
| commit | b7c41e8d5dc490dd3a5d291d73b0ac382a50891c (patch) | |
| tree | caae63be4655b97b598411f12c772f059e27481f /Boot | |
| parent | 4b92ffc5db94698129b40889cfc9a0363191a5ca (diff) | |
impl:
cherry pick from hw-*, add this fix.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Boot')
| -rw-r--r-- | Boot/Sources/HEL/AMD64/BootJump.S | 13 |
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 |
