aboutsummaryrefslogtreecommitdiff
path: root/common/timer.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-05 23:19:42 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-05 23:19:42 +0300
commit5fb1af3ab12880331fb1e2150aa23b1278e60ddd (patch)
tree3e905ee027369f01611edbc1b1a1a00e9a30dc41 /common/timer.c
parent9273c16434316a8ab60dc78ee65a03e68031203a (diff)
downloadkmi-5fb1af3ab12880331fb1e2150aa23b1278e60ddd.tar.gz
kmi-5fb1af3ab12880331fb1e2150aa23b1278e60ddd.zip
riscv64 boots with clang (sort of)
Diffstat (limited to 'common/timer.c')
-rw-r--r--common/timer.c9
1 files changed, 9 insertions, 0 deletions
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 */
+}