From a2f9ae9d4ab678fa66a2ec5d1072ea22a36a18a1 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 19 Jan 2023 23:36:11 +0100 Subject: kernel: user interrupts --- src/kernel/proc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index b95e901..041dbd0 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -81,6 +81,9 @@ struct process { /* vfs_backend controlled (not exclusively) by this process */ struct vfs_backend *controlled; + /* interrupt handler */ + void __user *intr_fn; + struct { void *buf; size_t len; @@ -100,6 +103,8 @@ void process_filicide(struct process *proc, int ret); /** Tries to reap a dead process / free a tombstone. */ void process_tryreap(struct process *dead); +void process_intr(struct process *proc); + /** Switches execution to any running process. */ _Noreturn void process_switch_any(void); -- cgit v1.2.3