Add support for vmem_set_flags syscall

This commit is contained in:
pjht 2024-03-19 12:50:52 -05:00
parent 4b4c46d7ca
commit f3e90cdd5b
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 13 additions and 1 deletions

View File

@ -19,4 +19,6 @@ __STD_SYSCALLS_I equ 1
; Returns the range start in a0
; Permission flags in d2
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
endif

View File

@ -68,3 +68,13 @@ syscall_vmem_map_free_to:
move.l (a7)+, d3
rts
public syscall_vmem_set_flags
; Sets the permission flags of the range of virtual pages starting at address a0 with length d1 to d0
syscall_vmem_set_flags:
move.l d2, -(a7)
move.l d1, d2
move.l d0, d1
move.l #7, d0
trap #0
move.l (a7)+, d2
rts