Add support for new_process syscall

This commit is contained in:
pjht 2024-03-19 13:39:29 -05:00
parent e6d4e507e2
commit 7839336698
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 9 additions and 0 deletions

View File

@ -23,4 +23,6 @@ __STD_SYSCALLS_I equ 1
xref syscall_vmem_set_flags 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 ; 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 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 endif

View File

@ -86,3 +86,10 @@ syscall_vmem_copy_to_secondary:
move.l #8, d0 move.l #8, d0
trap #0 trap #0
rts 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