diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-05 23:19:42 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-05 23:19:42 +0300 |
| commit | 5fb1af3ab12880331fb1e2150aa23b1278e60ddd (patch) | |
| tree | 3e905ee027369f01611edbc1b1a1a00e9a30dc41 /common/timer.c | |
| parent | 9273c16434316a8ab60dc78ee65a03e68031203a (diff) | |
| download | kmi-5fb1af3ab12880331fb1e2150aa23b1278e60ddd.tar.gz kmi-5fb1af3ab12880331fb1e2150aa23b1278e60ddd.zip | |
riscv64 boots with clang (sort of)
Diffstat (limited to 'common/timer.c')
| -rw-r--r-- | common/timer.c | 9 |
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 */ +} |
