restore PSW like 9393439a20 for AMD syscall
Change-Id: I5c4702a8a377a71aa9af26c8e72e30d44db7d321
This commit is contained in:
parent
65eccd1f74
commit
098f15923f
|
|
@ -422,7 +422,12 @@ ENTRY(restore_user_context_syscall)
|
|||
mov SPREG(%ebp), %esp /* restore ESP directly */
|
||||
mov AXREG(%ebp), %eax /* trap return value */
|
||||
mov BXREG(%ebp), %ebx /* secondary return value */
|
||||
movl PSWREG(%ebp), %edi /* load desired PSW to EDI */
|
||||
|
||||
/* restore PSW */
|
||||
movl PSWREG(%ebp), %edi /* load desired PSW to EDI */
|
||||
push %edi
|
||||
popf
|
||||
|
||||
sysret /* jump to EIP in user */
|
||||
|
||||
ENTRY(restore_user_context_int)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user