summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2022-04-14 12:36:34 +0200
committerdzwdz2022-04-14 12:36:34 +0200
commit0d59c8d11173b28f958413128eb792655568a365 (patch)
tree4750ee37a845bdae8f9fbc85eb6baa80fdc7a8cc /src/kernel/proc.c
parent18d757e1b4939b24031935a6db59aefee4669e68 (diff)
kernel: store a pointer to the callback function in .waits4irq
removes `proc.c`'s pointless dependency on `vfs/root.h`
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 2c4cc5c..e97d5cf 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -6,7 +6,6 @@
#include <kernel/vfs/mount.h>
#include <shared/mem.h>
#include <stdint.h>
-#include <kernel/vfs/root.h> // TODO
struct process *process_first;
struct process *process_current;
@@ -108,7 +107,7 @@ _Noreturn void process_idle(void) {
if (procs[i]->waits4irq.ready()) {
/* if this is entered during the first iteration, it indicates a
* kernel bug. this should be logged. TODO? */
- vfs_root_handler(&procs[i]->waits4irq.req); // TODO this should be a function pointer too
+ procs[i]->waits4irq.callback(procs[i]);
process_switch_any();
}
}