isr: add the same ss fix as in the push

This commit is contained in:
Matheus
2022-09-19 18:35:14 -03:00
parent 55b911fcd3
commit 3f18b6e392
+8
View File
@@ -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