diff --git a/include/syscalls.i b/include/syscalls.i index 4f56c7f..fd0d4dd 100644 --- a/include/syscalls.i +++ b/include/syscalls.i @@ -23,4 +23,6 @@ __STD_SYSCALLS_I equ 1 xref syscall_vmem_set_flags ; Copies the range of page mappings at address a0 in the primary space with length d0 to the secondary space starting at address a1 xref syscall_vmem_copy_to_secondary +; Creates a new process using the secondary address space of the current process and entry in a0 + xref syscall_new_process endif diff --git a/syscalls.68k b/syscalls.68k index 0b56e42..709daee 100644 --- a/syscalls.68k +++ b/syscalls.68k @@ -86,3 +86,10 @@ syscall_vmem_copy_to_secondary: move.l #8, d0 trap #0 rts + + public syscall_new_process +; Creates a new process using the secondary address space of the current process and entry in a0 +syscall_new_process: + move.l #9, d0 + trap #0 + rts