[Zion] Move existing proc/thread cleanup calls to the cleanup thread.
This commit is contained in:
parent
8bedc80caf
commit
8fb5b7c03c
6 changed files with 67 additions and 34 deletions
|
|
@ -9,7 +9,6 @@
|
|||
z_err_t ProcessExit(ZProcessExitReq* req) {
|
||||
auto curr_thread = gScheduler->CurrentThread();
|
||||
dbgln("Exit code: {}", static_cast<glcr::ErrorCode>(req->code));
|
||||
gProcMan->CleanupProcess(curr_thread->pid());
|
||||
curr_thread->process().Exit();
|
||||
panic("Returned from thread exit");
|
||||
return glcr::UNIMPLEMENTED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue