From b7c41e8d5dc490dd3a5d291d73b0ac382a50891c Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Fri, 21 Jun 2024 19:33:07 +0200 Subject: impl: cherry pick from hw-*, add this fix. Signed-off-by: Amlal EL Mahrouss --- Boot/Sources/HEL/AMD64/BootJump.S | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Boot/Sources') 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 -- cgit v1.2.3