From f3d931aa7cfaf96baef8383b59a8938779541ee7 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 15 Aug 2024 18:35:34 +0200 Subject: [IMP] Moved source code into dev/ folder. Signed-off-by: Amlal EL Mahrouss --- dev/Boot/Sources/HEL/AMD64/BootJump.S | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dev/Boot/Sources/HEL/AMD64/BootJump.S (limited to 'dev/Boot/Sources/HEL/AMD64/BootJump.S') diff --git a/dev/Boot/Sources/HEL/AMD64/BootJump.S b/dev/Boot/Sources/HEL/AMD64/BootJump.S new file mode 100644 index 00000000..7c2fcbc4 --- /dev/null +++ b/dev/Boot/Sources/HEL/AMD64/BootJump.S @@ -0,0 +1,21 @@ +.global rt_jump_to_address +.text + +.text +.intel_syntax noprefix + +/** + @brief this function setups a stack and then jumps to + a function */ +rt_jump_to_address: + mov rsp, r8 + + push rax + push rdx + mov rbx, rcx + mov rcx, rdx + jmp rbx + pop rdx + pop rax + + ret -- cgit v1.2.3