mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
x86-64: switch order of user code and data segments for syscall instruction
This commit is contained in:
@@ -27,7 +27,7 @@ arch_context_switch:
|
||||
add rsp,8 ; remove error code
|
||||
|
||||
; check if swapgs is needed
|
||||
cmp qword [rsp+8], 0x18
|
||||
cmp qword [rsp+8], 0x23
|
||||
jne .notneeded2
|
||||
swapgs
|
||||
.notneeded2:
|
||||
|
||||
Reference in New Issue
Block a user