diff options
author | dzwdz | 2022-05-05 21:43:21 +0200 |
---|---|---|
committer | dzwdz | 2022-05-05 21:43:21 +0200 |
commit | 740cacba5befeba212935b00f8ae95008f564293 (patch) | |
tree | 067a164ee13d6c118c0ed9b7f897f84e4b7d91b6 /src/kernel/proc.c | |
parent | f9bc4ac436dec5f2f1f1db31c4933c80ed40568b (diff) |
kernel/proc: remove WAITS4IRQ
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; |