Fix iopl flag when sysenter/exit are used
Change-Id: If8c12f987c3adb8f329ae163da6b2f1cb8cc772f
This commit is contained in:
parent
521fa314e2
commit
9393439a20
1 changed files with 6 additions and 1 deletions
|
@ -402,7 +402,12 @@ ENTRY(restore_user_context_sysenter)
|
|||
mov SPREG(%ebp), %ecx /* sysexit restores ESP using ECX */
|
||||
mov AXREG(%ebp), %eax /* trap return value */
|
||||
mov BXREG(%ebp), %ebx /* secondary return value */
|
||||
|
||||
/* restore PSW */
|
||||
movl PSWREG(%ebp), %edi /* load desired PSW to EDI */
|
||||
push %edi
|
||||
popf
|
||||
|
||||
sti /* enable interrupts */
|
||||
sysexit /* jump to EIP in user */
|
||||
|
||||
|
|
Loading…
Reference in a new issue