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.
This commit is contained in:
Adrian-Ken Rueegsegger 2015-02-18 00:46:43 +01:00 committed by Christian Helmuth
parent ab9d7afa45
commit 3e779e3ca1
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@
mov $_mt_buffer, %rsp
popq %rax
1: jmp 1b
iretq
/* end of the mode transition code */
.global _mt_end