kern: mostly implement thread exit

This commit is contained in:
Michael Scire committed 2020-07-10 18:39:53 -07:00
1 parent c8f71007ec
commit 4a767c9082
8 files changed
+126 -3

No files matched your search

@@ -272,6 +272,25 @@ namespace ams::kern {
}
}
bool KProcess::EnterUserException() {
MESOSPHERE_UNIMPLEMENTED();
}
bool KProcess::LeaveUserException() {
return this->ReleaseUserException(GetCurrentThreadPointer());
}
bool KProcess::ReleaseUserException(KThread *thread) {
KScopedSchedulerLock sl;
if (this->exception_thread == thread) {
/* TODO */
MESOSPHERE_UNIMPLEMENTED();
} else {
return false;
}
}
void KProcess::RegisterThread(KThread *thread) {
KScopedLightLock lk(this->list_lock);