diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-01 23:34:57 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-01 23:34:57 +0300 |
| commit | 7ad9c01dad7b1b46eced8290b8b991383d648188 (patch) | |
| tree | cd528648af552974b90117efef431659ef5f0cc6 /src/timer.c | |
| parent | 9ff67d879b4695e0c9910b7276f3959c005c7b19 (diff) | |
| download | kmi-7ad9c01dad7b1b46eced8290b8b991383d648188.tar.gz kmi-7ad9c01dad7b1b46eced8290b8b991383d648188.zip | |
expand notifications into interrupt handlers
+ Terminology is still a bit poor, and will still have to write
documentation + implement ipis properly
Diffstat (limited to 'src/timer.c')
| -rw-r--r-- | src/timer.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c index 474d995..5af03e8 100644 --- a/src/timer.c +++ b/src/timer.c @@ -16,12 +16,13 @@ */ #include <kmi/sp_tree.h> +#include <arch/timer.h> #include <kmi/string.h> +#include <kmi/notify.h> #include <kmi/nodes.h> #include <kmi/utils.h> #include <kmi/timer.h> #include <kmi/debug.h> -#include <arch/timer.h> #include <arch/cpu.h> /** Timer resolution. */ @@ -199,5 +200,9 @@ void handle_timer() struct timer *t = newest_timer(); remove_timer(t); - /** \todo handle timer thread ID */ + struct tcb *r = get_tcb(t->tid); + if (!r) + return; + + notify(r); } |
