Kernel: Restore state strings for block states

"Blocking" is not terribly informative, but now that everything is
ported over, we can force the blocker to provide us with a reason.

This does mean that to_string(State) needed to become a member, but
that's OK.
This commit is contained in:
Robin Burchell 2019-07-19 09:51:48 +02:00 committed by Andreas Kling
commit 762333ba95
Notes: sideshowbarker 2024-07-19 13:09:26 +09:00
7 changed files with 37 additions and 18 deletions

View file

@ -139,7 +139,7 @@ void SB16::handle_irq()
void SB16::wait_for_irq()
{
current->block_until([this] {
current->block_until("Interrupting", [this] {
return m_interrupted;
});
}