mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
isr: add the same ss fix as in the push
This commit is contained in:
@@ -77,6 +77,14 @@ section .text
|
|||||||
pop r15
|
pop r15
|
||||||
pop rdi
|
pop rdi
|
||||||
pop rsi
|
pop rsi
|
||||||
|
|
||||||
|
; check and patch ss if it is invalid because of the syscall instruction
|
||||||
|
cmp qword [rsp+48], 0x33
|
||||||
|
jne .nofix
|
||||||
|
mov qword [rsp+48], 0x43
|
||||||
|
.nofix:
|
||||||
|
|
||||||
|
|
||||||
pop rbp
|
pop rbp
|
||||||
add rsp,8 ; remove error code
|
add rsp,8 ; remove error code
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user