From 16a15237a4e4f574beeeedab1e83b24776e92035 Mon Sep 17 00:00:00 2001 From: Adrian-Ken Rueegsegger Date: Fri, 20 Feb 2015 16:13:58 +0100 Subject: [PATCH] hw_x86_64: Continue execution of the kernel The instruction pointer is the first field of the master context and can directly be used as a jump argument, which avoids additional register copy operations. --- repos/base-hw/src/core/spec/x86_64/mode_transition.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base-hw/src/core/spec/x86_64/mode_transition.s b/repos/base-hw/src/core/spec/x86_64/mode_transition.s index f467032af..ff41034a5 100644 --- a/repos/base-hw/src/core/spec/x86_64/mode_transition.s +++ b/repos/base-hw/src/core/spec/x86_64/mode_transition.s @@ -135,7 +135,7 @@ /* Restore kernel stack and continue kernel execution */ mov _mt_master_context_begin+SP_OFFSET, %rsp - 1: jmp 1b + jmp *_mt_master_context_begin .global _mt_user_entry_pic _mt_user_entry_pic: