diff options
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r-- | src/kernel/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c index e67af19..d20b0d3 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -58,6 +58,7 @@ struct process *process_fork(struct process *parent) { } void process_switch(struct process *proc) { + assert(proc->state == PS_RUNNING); process_current = proc; pagedir_switch(proc->pages); sysexit(proc->regs); |