mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
x86-64: switch order of user code and data segments for syscall instruction
This commit is contained in:
@@ -9,7 +9,7 @@ isr_%+ i:
|
||||
|
||||
; check if swapgs is needed
|
||||
|
||||
cmp qword [rsp+16], 0x18
|
||||
cmp qword [rsp+16], 0x23
|
||||
jne .notneeded1
|
||||
swapgs
|
||||
.notneeded1:
|
||||
@@ -73,7 +73,7 @@ isr_%+ i:
|
||||
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