[Zion] Add a framework for better process exit.

This commit is contained in:
Drew Galbraith 2023-11-16 23:03:27 -08:00
parent aa2d80b557
commit 308dd6a203
9 changed files with 80 additions and 8 deletions

View file

@ -8,8 +8,7 @@
z_err_t ProcessExit(ZProcessExitReq* req) {
auto curr_thread = gScheduler->CurrentThread();
dbgln("Exit code: {x}", req->code);
// FIXME: kill process here.
curr_thread->Exit();
curr_thread->process().Exit();
panic("Returned from thread exit");
return glcr::UNIMPLEMENTED;
}