1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add space for the red zone

This commit is contained in:
Stefan Lankes 2015-07-12 19:10:37 +02:00
parent 9f3feddfd4
commit 13dae8f7c8

View file

@ -532,6 +532,8 @@ align 8
isrsyscall:
; IF flag is already cleared => see processor.c
; cli
; save space for caller's red zone
sub rsp, 128
; save registers accross function call
push r8
push r9
@ -573,6 +575,7 @@ isrsyscall:
pop r10
mov rsp, r10
; restore registers
pop rsi
pop rdi
pop rcx
@ -581,6 +584,8 @@ isrsyscall:
pop r10
pop r9
pop r8
; remove red zone
add rsp, 128
; EFLAGS (and IF flag) will be restored by sysret
; sti
o64 sysret