Add support for vmem_copy_to_secondary syscall

This commit is contained in:
pjht 2024-03-19 13:11:56 -05:00
parent f3e90cdd5b
commit e6d4e507e2
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 10 additions and 0 deletions

View File

@ -21,4 +21,6 @@ __STD_SYSCALLS_I equ 1
xref syscall_vmem_map_free_to
; Sets the permission flags of the range of virtual pages starting at address a0 with length d1 to d0
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
endif

View File

@ -78,3 +78,11 @@ syscall_vmem_set_flags:
trap #0
move.l (a7)+, d2
rts
public syscall_vmem_copy_to_secondary
; Copies the range of page mappings at address a0 in the primary space with length d0 to the secondary space starting at address a1
syscall_vmem_copy_to_secondary:
move.l d0, d1
move.l #8, d0
trap #0
rts