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

Merge pull request #37 from daniel-k/pr/kernel_fixes

kernel: fix check_timers() and pseudo interrupt stack
This commit is contained in:
Stefan Lankes 2016-08-29 16:21:19 +02:00 committed by GitHub
commit 5f818aaa80
2 changed files with 2 additions and 2 deletions

View file

@ -506,8 +506,8 @@ switch_context:
pushfq ; RFLAGS
push QWORD 0x08 ; CS
push QWORD rollback ; RIP
push QWORD 0x00 ; Interrupt number
push QWORD 0x00edbabe ; Error code
push QWORD 0x00 ; Interrupt number
push rax
push rcx
push rdx

View file

@ -766,7 +766,7 @@ void check_timers(void)
// check timers
current_tick = get_clock_tick();
while (readyqueues[core_id].timers.first && readyqueues[core_id].timers.first->timeout <= current_tick)
while (readyqueues[core_id].timers.first && readyqueues[core_id].timers.first->timeout >= current_tick)
{
task_t* task = readyqueues[core_id].timers.first;