mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[NTOS:KE] Explicitly use sysretq instruction
This commit is contained in:
committed by
Jérôme Gardou
parent
63944988a2
commit
5e29e98f91
@@ -837,7 +837,7 @@ no_user_apc_pending:
|
||||
|
||||
/* return to user mode */
|
||||
.byte HEX(48) // REX prefix to return to long mode
|
||||
sysret
|
||||
sysretq
|
||||
|
||||
.ENDP
|
||||
|
||||
@@ -1071,7 +1071,7 @@ KiInitializeSegments:
|
||||
*/
|
||||
PUBLIC KiSwitchKernelStackHelper
|
||||
KiSwitchKernelStackHelper:
|
||||
|
||||
|
||||
/* Pop return address from the current stack */
|
||||
pop rax
|
||||
|
||||
|
||||
Reference in New Issue
Block a user