#include <kernel.h>#include <proc.h>#include <clock.h>#include <queue.h>

Go to the source code of this file.
Functions | |
| void | ctxsw (void *, void *) |
| syscall | resched (void) |
Definition in file resched.c.
| void ctxsw | ( | void * | , | |
| void * | ||||
| ) |
Referenced by resched().
| syscall resched | ( | void | ) |
Reschedule processor to highest priority ready process. Upon entry, currpid gives current process id. Proctab[currpid].pstate gives correct NEXT state for current process if other than PRREADY.
Definition at line 21 of file resched.c.
References ctxsw(), currpid, dequeue(), disable(), insert(), pentry::irqstate, OK, PRCURR, preempt, pentry::prio, proctab, PRREADY, QUANTUM, readylist, restore(), pentry::state, and pentry::stkptr.
Referenced by clockintr(), kill(), nulluser(), ready(), receive(), send(), sleep(), t4(), t5(), test_recursion(), test_schedule(), wait(), and wakeup().
1.5.5