From 7ad9c01dad7b1b46eced8290b8b991383d648188 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 1 Jul 2024 23:34:57 +0300 Subject: expand notifications into interrupt handlers + Terminology is still a bit poor, and will still have to write documentation + implement ipis properly --- src/timer.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/timer.c') 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 +#include #include +#include #include #include #include #include -#include #include /** 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); } -- cgit v1.3