mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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 rdi
|
||||
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
|
||||
add rsp,8 ; remove error code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user