Add syscall to create a new process

This commit is contained in:
pjht 2024-03-19 13:39:03 -05:00
parent 1749a11283
commit 1c73092c2d
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -72,6 +72,13 @@ syscall_vmem_copy_to_secondary:
jsr vmem_copy_to_secondary jsr vmem_copy_to_secondary
rts 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 section .data,data
syscall_table: syscall_table:
@ -85,3 +92,4 @@ syscall_table:
dc.l syscall_vmem_map_free_to dc.l syscall_vmem_map_free_to
dc.l syscall_vmem_set_flags dc.l syscall_vmem_set_flags
dc.l syscall_vmem_copy_to_secondary dc.l syscall_vmem_copy_to_secondary
dc.l syscall_new_process