Implement exit syscall

This commit is contained in:
Justin C. Miller
2019-03-14 22:28:21 -07:00
parent f7558e3d18
commit be007c6278
5 changed files with 27 additions and 2 deletions

View File

@@ -57,6 +57,10 @@ struct process
uintptr_t kernel_stack;
size_t kernel_stack_size;
/// Terminate this process.
/// \arg code The return code to exit with.
void exit(unsigned code);
/// Copy this process.
/// \arg in_rsp The RSP of the calling process
/// \returns Returns the child's pid to the parent, and