diff options
Diffstat (limited to 'kernel/x86.c')
| -rw-r--r-- | kernel/x86.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/x86.c b/kernel/x86.c index 15236a3..725c50d 100644 --- a/kernel/x86.c +++ b/kernel/x86.c @@ -1,6 +1,7 @@ #define FOOLOS_MODULE_NAME "x86" #include "x86.h" +#include "timer.h" #include "lib/int/stdint.h" #include "lib/logger/log.h" @@ -8,11 +9,9 @@ // suffix (b, w, l, q for byte, word, dword, and qword). // -extern volatile uint64_t task_system_clock; // from task.c - void sleep(int i) { - volatile uint64_t clock=task_system_clock; + volatile uint64_t clock=timer_get_ticks(); // while(clock+i>task_system_clock) // { |
