Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
7001ba4222
|
@@ -1,4 +1,4 @@
|
||||
# Intro. to OS HW1
|
||||
# Introduction to OS 2024 HW
|
||||
|
||||
## Docker Compose usage
|
||||
|
||||
|
||||
@@ -56,19 +56,19 @@ class Instruction {
|
||||
void
|
||||
Machine::Run()
|
||||
{
|
||||
Instruction *instr = new Instruction; // storage for decoded instruction
|
||||
Instruction *instr = new Instruction; // storage for decoded instruction
|
||||
|
||||
if (debug->IsEnabled('m')) {
|
||||
cout << "Starting program in thread: " << kernel->currentThread->getName();
|
||||
cout << ", at time: " << kernel->stats->totalTicks << "\n";
|
||||
}
|
||||
kernel->interrupt->setStatus(UserMode);
|
||||
for (;;) {
|
||||
OneInstruction(instr);
|
||||
kernel->interrupt->OneTick();
|
||||
if (singleStep && (runUntilTime <= kernel->stats->totalTicks))
|
||||
Debugger();
|
||||
}
|
||||
if (debug->IsEnabled('m')) {
|
||||
cout << "Starting program in thread: " << kernel->currentThread->getName();
|
||||
cout << ", at time: " << kernel->stats->totalTicks << "\n";
|
||||
}
|
||||
kernel->interrupt->setStatus(UserMode);
|
||||
for (;;) {
|
||||
OneInstruction(instr);
|
||||
kernel->interrupt->OneTick();
|
||||
if (singleStep && (runUntilTime <= kernel->stats->totalTicks))
|
||||
Debugger();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user