#include "copyright.h"
#include "utility.h"
#include "thread.h"
#include "scheduler.h"
#include "interrupt.h"
#include "stats.h"
#include "timer.h"
Go to the source code of this file.
Defines | |
#define | NSECS_PER_SEC 1000000000 |
#define | PREEMPTION 1 |
#define | TICKS_PER_SEC 15 |
Functions | |
void | Initialize (int argc, char **argv) |
void | Cleanup () |
Variables | |
long | timerCount |
long | secCount |
Thread * | currentThread |
Thread * | threadToBeDestroyed |
Scheduler * | scheduler |
Interrupt * | interrupt |
Statistics * | stats |
Timer * | timer |
|
Definition at line 19 of file system.h. Referenced by timerInit(). |
|
Definition at line 20 of file system.h. Referenced by Scheduler::timerIntH(). |
|
Definition at line 21 of file system.h. Referenced by Scheduler::timerIntH(). |
|
|
|
Definition at line 90 of file system.cc. References ASSERT, CallOnUserAbort(), Cleanup(), DebugInit(), Interrupt::Enable(), FALSE, interrupt, RandomInit(), scheduler, stats, threadToBeDestroyed, timer, and TRUE. Referenced by main().
|
|
Definition at line 19 of file system.cc. Referenced by Thread::Finish(), main(), Interrupt::OneTick(), Semaphore::P(), Machine::Run(), schedule(), Thread::Sleep(), Thread::Suspend(), Scheduler::timerIntH(), Thread::Yield(), and Thread::~Thread(). |
|
|
Definition at line 21 of file system.cc. Referenced by Cleanup(), Thread::Fork(), Initialize(), main(), schedule(), Thread::Suspend(), Scheduler::timerIntH(), and Semaphore::V(). |
|
Definition at line 29 of file system.cc. Referenced by Statistics::Print(), and Scheduler::timerIntH(). |
|
Definition at line 23 of file system.cc. Referenced by Console::CheckCharAvail(), Network::CheckPktAvail(), Disk::ComputeLatency(), Machine::Debugger(), Interrupt::DumpState(), Interrupt::Halt(), Initialize(), Interrupt::OneTick(), Disk::ReadRequest(), Machine::Run(), Interrupt::Schedule(), Network::SendDone(), Console::WriteDone(), and Disk::WriteRequest(). |
|
Definition at line 20 of file system.cc. Referenced by Thread::Finish(), Initialize(), and schedule(). |
|
Definition at line 24 of file system.cc. Referenced by Cleanup(), and Initialize(). |
|
Definition at line 28 of file system.cc. Referenced by Statistics::Print(), and Scheduler::timerIntH(). |