From 5fb1af3ab12880331fb1e2150aa23b1278e60ddd Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 5 May 2022 23:19:42 +0300 Subject: riscv64 boots with clang (sort of) --- common/timer.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/timer.c') diff --git a/common/timer.c b/common/timer.c index 2006a6c..da4fd11 100644 --- a/common/timer.c +++ b/common/timer.c @@ -130,3 +130,12 @@ ticks_t nsecs_to_ticks(tunit_t nsecs) ticks_t t = (nsecs * ticks_per_sec) / 1000000000; return t == 0 ? 1 : t; } + +/* call to this function from exception handlers */ +void update_timers() +{ + struct timer *t = newest_timer(); + remove_timer(t); + + /* TODO: handle timer thread ID */ +} -- cgit v1.3