diff options
author | dzwdz | 2024-08-03 02:04:58 +0200 |
---|---|---|
committer | dzwdz | 2024-08-03 02:04:58 +0200 |
commit | 27b8676963d5d69353f44fde7faaa9a4dfe1567b (patch) | |
tree | 7c5decd1bc4b4a43a1ee331e671681830eb1d1da /src/kernel/proc.c | |
parent | 974c2581c9524aa7546f5863ecc26065e328cd54 (diff) |
kernel: send user interrupt on page fault
I really should just rename interrupts to something else.
This is inspired by Plan9 and meant to make debugging easier, as the
dying process can take a stacktrace etc.
It kinda sucks that the default handler now depends on fprintf, which is quite
a bit of code, but whatever.
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index abe0d04..278b2bc 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -383,7 +383,7 @@ void proc_intr(Proc *p, const char *buf, size_t len) { memcpy(p->queuedintr->buf, buf, len); } -static void proc_intr_deliver(Proc *p) { +void proc_intr_deliver(Proc *p) { assert(p->state == PS_RUNNING); Intr *intr = p->queuedintr; |