Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/include/clock.h File Reference

#include <queue.h>

Include dependency graph for clock.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define QUANTUM   10

Functions

void clockinit (void)
void clock_update (ulong)
interrupt clockintr (void)

Variables

ulong preempt
ulong ctr_mS
ulong clocktime
ulong time_base_freq
ulong time_intr_freq
queue sleepq


Detailed Description

Definitions relating to the hardware clock and the XINU clock interrupt.

Id
clock.h 226 2007-07-12 01:18:27Z mschul

Definition in file clock.h.


Define Documentation

#define QUANTUM   10

clock ticks until preemption

Definition at line 14 of file clock.h.

Referenced by resched().


Function Documentation

void clock_update ( ulong   ) 

Referenced by clockintr().

void clockinit ( void   ) 

Referenced by sysinit().

interrupt clockintr ( void   ) 

XINU Clock handler. Ticks. Tocks. Wakes up sleeping procs.

Definition at line 20 of file clockintr.c.

References clock_update(), clocktime, ctr_mS, firstkey, nonempty, preempt, resched(), restore_intr(), sleepq, time_intr_freq, and wakeup().


Variable Documentation

current time in secs since boot

Referenced by clockintr().

millisecond counter

Referenced by clockintr().

Referenced by clockintr(), and resched().

queue for sleeping processes

Referenced by clockintr(), sleep(), and wakeup().

frequency of hardware clock update

frequency of XINU clock interrupt

Referenced by clockintr().


Generated on Thu Oct 9 22:34:30 2008 for xinu by  doxygen 1.5.5