Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/resched.c File Reference

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

Include dependency graph for resched.c:

Go to the source code of this file.

Functions

void ctxsw (void *, void *)
syscall resched (void)


Detailed Description

resched

Id
resched.c 241 2007-07-13 22:24:20Z agember

Definition in file resched.c.


Function Documentation

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.

Returns:
OK when the process is context switched back

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().


Generated on Thu Oct 9 22:35:11 2008 for xinu by  doxygen 1.5.5