[Zion] Add a ProcessWait syscall.
This commit is contained in:
parent
642fc4d80d
commit
d9a4be6555
8 changed files with 29 additions and 8 deletions
|
|
@ -10,6 +10,7 @@ z_err_t SysCall1(uint64_t code, const void* req);
|
|||
SYS1(ProcessExit, uint64_t, code);
|
||||
SYS5(ProcessSpawn, z_cap_t, proc_cap, z_cap_t, bootstrap_cap, z_cap_t*,
|
||||
new_proc_cap, z_cap_t*, new_vmas_cap, z_cap_t*, new_bootstrap_cap);
|
||||
SYS2(ProcessWait, z_cap_t, proc_cap, z_err_t*, exit_code);
|
||||
|
||||
SYS2(ThreadCreate, z_cap_t, proc_cap, z_cap_t*, thread_cap);
|
||||
SYS4(ThreadStart, z_cap_t, thread_cap, uint64_t, entry, uint64_t, arg1,
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ typedef uint64_t z_err_t;
|
|||
// Process Calls.
|
||||
const uint64_t kZionProcessExit = 0x1;
|
||||
const uint64_t kZionProcessSpawn = 0x2;
|
||||
const uint64_t kZionProcessWait = 0x3;
|
||||
|
||||
// Thread Calls.
|
||||
const uint64_t kZionThreadCreate = 0x10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue