hw4 test
This commit is contained in:
@@ -43,13 +43,15 @@ Alarm::Alarm(bool doRandom)
|
||||
// if we're currently running something (in other words, not idle).
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
void
|
||||
Alarm::CallBack()
|
||||
void
|
||||
Alarm::CallBack()
|
||||
{
|
||||
Interrupt *interrupt = kernel->interrupt;
|
||||
Interrupt* interrupt = kernel->interrupt;
|
||||
MachineStatus status = interrupt->getStatus();
|
||||
|
||||
|
||||
// Todo ----
|
||||
if (status != IdleMode) {
|
||||
interrupt->YieldOnReturn();
|
||||
// interrupt->YieldOnReturn();
|
||||
}
|
||||
// ---------
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user