mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +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
Notes:
sideshowbarker
2024-07-19 01:27:05 +09:00
Author: https://github.com/tomuta
Commit: a14884dd33
Pull-request: https://github.com/SerenityOS/serenity/pull/4042
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