diff options
Diffstat (limited to 'arch/x86_64/umode_enter.S')
-rw-r--r-- | arch/x86_64/umode_enter.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86_64/umode_enter.S b/arch/x86_64/umode_enter.S new file mode 100644 index 0000000..29aa4e3 --- /dev/null +++ b/arch/x86_64/umode_enter.S @@ -0,0 +1,8 @@ +.global umode_enter +.type umode_enter @function +umode_enter: + movq %rdi, %rcx + movq %rsi, %rsp + movq $0x0202, %r11 + cli + sysretq |