Set eflags properly for jump to userspace

This commit is contained in:
Drew Galbraith 2023-06-12 19:20:42 -07:00
parent 8ac5366882
commit 4e1888bd24
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ jump_user_space:
pushq $0x23 # ss
pushq %rsi
pushf # Can we just push 0 for flags?
pushq $0x202 # Bit 9 enables interrupts.
pushq $0x1B # cs
pushq %rdi
mov %rdx, %rdi