38 #include "copyright.h" 52 enum IntType { TimerInt, DiskInt, ConsoleWriteInt, ConsoleReadInt,
53 NetworkSendInt, NetworkRecvInt};
66 VoidFunctionPtr handler;
110 void Schedule(VoidFunctionPtr handler,
111 int arg,
long long when,
IntType type);
127 bool CheckIfDue(
bool advanceClock);
134 #endif // INTERRRUPT_H Definition: interrupt.h:78
The following class defines an interrupt that is scheduled to occur in the future. The internal data structures are left public to make it simpler to manipulate.
Definition: interrupt.h:59
IntType
IntType records which hardware device generated an interrupt. In Nachos, we support a hardware timer ...
Definition: interrupt.h:52
Routines to manage a singly-linked list of "things". Defining TRUE and FALSE is usually a Bad Idea...
IntStatus
Interrupts can be disabled (IntOff) or enabled (IntOn)
Definition: interrupt.h:42
MachineStatus
Nachos can be running kernel code (SystemMode), user code (UserMode), or there can be no runnable thr...
Definition: interrupt.h:47
PendingInterrupt(VoidFunctionPtr func, int param, long long time, IntType kind)
PendingInterrupt::PendingInterrupt Initialize a hardware device interrupt that is to be scheduled to ...
Definition: interrupt.cc:45