diff options
Diffstat (limited to 'stage3/thread.c')
-rw-r--r-- | stage3/thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stage3/thread.c b/stage3/thread.c index aeec3bd..4609102 100644 --- a/stage3/thread.c +++ b/stage3/thread.c @@ -1,6 +1,7 @@ #include "thread.h" #include "heap.h" #include "pic.h" +#include "clock.h" static thread *current_thread = nil; void *thread_sched_stack = nil; @@ -56,6 +57,7 @@ void thread_sched(yield_arg *arg, void *stack) } for (;;) { + clock_sync(); if (queue_read.len == 0) { disable_irqs(); |