[kernel] Add process_create syscall

New syscall creates a process (and thus a new virtual address space) but
does not create any threads in it.
This commit is contained in:
Justin C. Miller
2021-01-20 18:39:14 -08:00
parent 521df1f4b7
commit 452457412b
4 changed files with 36 additions and 8 deletions

View File

@@ -101,11 +101,16 @@ main(int argc, const char **argv)
_syscall_system_log(message);
_syscall_system_log("main thread waiting on child");
result = _syscall_object_wait(child, -1ull, &out);
if (result != j6_status_ok)
return result;
_syscall_system_log("main thread creating a new process");
j6_handle_t child_proc = j6_handle_invalid;
result = _syscall_process_create(&child_proc);
if (result != j6_status_ok)
return result;
_syscall_system_log("main testing irqs");