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

system call have to check if a timer expires

=> maybe a reschedule is also required
This commit is contained in:
Stefan Lankes 2015-07-24 23:17:12 +02:00
parent 4f5c2a0734
commit a4cb86aaf0

View file

@ -565,12 +565,21 @@ isrsyscall:
; during a system call, HermitCore allows interrupts
sti
extern syscall_table
call [rax*8+syscall_table]
push rax ; result, which we have to return
extern check_timers
call check_timers
extern check_scheduling
call check_scheduling
cli
; restore registers
;add rsp, 8 ; ignore old value of rax
pop rax
pop rsi
pop rdi
pop rcx