kern: mostly implement thread exit
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user