https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5e29e98f91cbb7ecba24da573d31c4c1ba066099

commit 5e29e98f91cbb7ecba24da573d31c4c1ba066099
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Thu Apr 22 17:33:24 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Apr 28 13:10:23 2021 +0200

    [NTOS:KE] Explicitly use sysretq instruction
---
 ntoskrnl/ke/amd64/trap.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ntoskrnl/ke/amd64/trap.S b/ntoskrnl/ke/amd64/trap.S
index b32d0ef4a4b..db7684d9b96 100644
--- a/ntoskrnl/ke/amd64/trap.S
+++ b/ntoskrnl/ke/amd64/trap.S
@@ -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
 

Reply via email to