Migrate to error constants in glacier

This commit is contained in:
Drew Galbraith 2023-06-21 18:28:54 -07:00
parent 3ab9b4d818
commit 0b86a94f14
30 changed files with 171 additions and 114 deletions

View file

@ -11,7 +11,7 @@ z_err_t ThreadCreate(ZThreadCreateReq* req) {
auto parent_proc = cap->obj<Process>();
auto thread = parent_proc->CreateThread();
*req->thread_cap = curr_proc.AddNewCapability(thread, ZC_WRITE);
return Z_OK;
return glcr::OK;
}
z_err_t ThreadStart(ZThreadStartReq* req) {
@ -22,7 +22,7 @@ z_err_t ThreadStart(ZThreadStartReq* req) {
auto thread = cap->obj<Thread>();
// FIXME: validate entry point is in user space.
thread->Start(req->entry, req->arg1, req->arg2);
return Z_OK;
return glcr::OK;
}
z_err_t ThreadExit(ZThreadExitReq*) {