From 3e779e3ca156be24ec73b703d089423e04513b76 Mon Sep 17 00:00:00 2001 From: Adrian-Ken Rueegsegger Date: Wed, 18 Feb 2015 00:46:43 +0100 Subject: [PATCH] hw_x86_64: Perform the user entry mode transition The interrupt return instruction in IA-32e mode applies the prepared interrupt stack frame to set the RFLAGS, CS and SS segment as well as the RIP and RSP registers. It then continues execution of the user code. For detailed information refer to Intel SDM Vol. 3A, section 6.14.3. --- 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 e8ca23d028..25c57e8a65 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 @@ -123,7 +123,7 @@ mov $_mt_buffer, %rsp popq %rax - 1: jmp 1b + iretq /* end of the mode transition code */ .global _mt_end