[NTOS:KE] Explicitly use sysretq instruction

This commit is contained in:
Jérôme Gardou 2021-04-22 17:33:24 +02:00 committed by Jérôme Gardou
parent 63944988a2
commit 5e29e98f91

View file

@ -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