diff options
Diffstat (limited to 'Boot/Sources')
| -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 |
