From f30c9803f05e90087e367953aa142275f8688f61 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 26 Apr 2020 23:23:42 +0200 Subject: Awesome new multitasking system and scheduler --- src/kernel/timer/timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/timer/timer.c') diff --git a/src/kernel/timer/timer.c b/src/kernel/timer/timer.c index f1a296a..29017a5 100644 --- a/src/kernel/timer/timer.c +++ b/src/kernel/timer/timer.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -16,13 +17,12 @@ void timer_phase(int hz) void timer_handler(struct regs *r) { timer_ticks++; - // switch_task(); } // "Delay" function with CPU sleep void timer_wait(int ticks) { - unsigned int eticks; + uint32_t eticks; eticks = timer_ticks + ticks; while (timer_ticks < eticks) { @@ -30,7 +30,7 @@ void timer_wait(int ticks) } } -unsigned int get_time() +uint32_t get_time() { return timer_ticks; } -- cgit v1.2.3