mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Kernel: Lock needs to call Processor::wait_check while looping
We need to process SMP messages while looping.
This commit is contained in:
parent
72d019f4a4
commit
a14884dd33
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ void Lock::lock(Mode mode)
|
|||
|
||||
// Note, we may now be on a different CPU!
|
||||
Processor::current().restore_critical(prev_crit, prev_flags);
|
||||
} else {
|
||||
// We need to process e.g. smp messages
|
||||
Processor::wait_check();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue