disable scheduler interrupt pausing, no preemption

This commit is contained in:
2022-07-04 17:07:18 +02:00
parent 16f814bfcf
commit e2e2c4545e
+2 -2
View File
@@ -116,7 +116,7 @@ void Scheduler::yield() {
/* hier muss Code eingefuegt werden */
// Thread-Wechsel durch PIT verhindern
cpu.disable_int ();
// cpu.disable_int ();
// When only one thread exists (IdleThread) it can't yield as the readyqueue becomes empty
// and this is not handled anywhere else
@@ -130,7 +130,7 @@ void Scheduler::yield() {
this->dispatch(next);
// Thread-Wechsel durch PIT jetzt wieder erlauben
cpu.enable_int ();
// cpu.enable_int ();
}
/*****************************************************************************