mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-15 07:34:23 -04:00
kern: update kernel waiter management rules
This commit is contained in:
parent
f67d1b7026
commit
3356eddcba
2 changed files with 5 additions and 2 deletions
|
@ -744,7 +744,7 @@ namespace ams::kern {
|
|||
}
|
||||
|
||||
/* Otherwise, wait for us to not have an exception thread. */
|
||||
cur_thread->SetAddressKey(address_key);
|
||||
cur_thread->SetAddressKey(address_key | 1);
|
||||
m_exception_thread->AddWaiter(cur_thread);
|
||||
if (cur_thread->GetState() == KThread::ThreadState_Runnable) {
|
||||
cur_thread->SetState(KThread::ThreadState_Waiting);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue