From 783933669818fc8a281c27e30dcd12207f7011ca Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 19 Mar 2024 13:39:29 -0500 Subject: [PATCH] Add support for new_process syscall --- include/syscalls.i | 2 ++ syscalls.68k | 7 +++++++ 2 files changed, 9 insertions(+) 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