From 740cacba5befeba212935b00f8ae95008f564293 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 5 May 2022 21:43:21 +0200 Subject: kernel/proc: remove WAITS4IRQ --- src/kernel/proc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index c9e3aef..ee26f44 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -213,9 +213,6 @@ void process_transition(struct process *p, enum process_state state) { case PS_WAITS4REQUEST: assert(last == PS_RUNNING); break; - case PS_WAITS4IRQ: - assert(last == PS_WAITS4FS); - break; case PS_LAST: panic_invalid_state(); @@ -267,9 +264,8 @@ void process_kill(struct process *p, int ret) { case PS_WAITS4FS: // if the request wasn't accepted we could just remove this process from the queue - case PS_WAITS4IRQ: - req = p->state == PS_WAITS4FS - ? p->waits4fs.req : p->waits4irq.req; + // eh + req = p->waits4fs.req; req->caller = NULL; // TODO test this break; -- cgit v1.2.3