Kernel: Preempt Single core on redudant yields.

This commit is contained in:
Fernando Sahmkow 2020-03-10 13:13:39 -04:00
parent ebb640e968
commit 0963ff1ae9
6 changed files with 42 additions and 21 deletions

View file

@ -642,6 +642,10 @@ void KernelCore::Suspend(bool in_suspention) {
}
}
bool KernelCore::IsMulticore() const {
return impl->is_multicore;
}
void KernelCore::ExceptionalExit() {
exception_exited = true;
Suspend(true);