From 1c73092c2db6f433c54193a83a2a889b3c30117f Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 19 Mar 2024 13:39:03 -0500 Subject: [PATCH] Add syscall to create a new process --- syscalls.68k | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/syscalls.68k b/syscalls.68k index eb2cafd..7c9429e 100644 --- a/syscalls.68k +++ b/syscalls.68k @@ -72,6 +72,13 @@ syscall_vmem_copy_to_secondary: jsr vmem_copy_to_secondary rts +; Creates a new process using the secondary address space of the current process and entry in a0 +syscall_new_process: + move.l a0, -(a7) + jsr tasking_get_secondary_addr_space + move.l (a7)+, a1 + jsr tasking_new_process + rts section .data,data syscall_table: @@ -85,3 +92,4 @@ syscall_table: dc.l syscall_vmem_map_free_to dc.l syscall_vmem_set_flags dc.l syscall_vmem_copy_to_secondary + dc.l syscall_new_process