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:
parent
4f5c2a0734
commit
a4cb86aaf0
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue