Add support for vmem_set_flags syscall
This commit is contained in:
parent
4b4c46d7ca
commit
f3e90cdd5b
@ -19,4 +19,6 @@ __STD_SYSCALLS_I equ 1
|
|||||||
; Returns the range start in a0
|
; Returns the range start in a0
|
||||||
; Permission flags in d2
|
; Permission flags in d2
|
||||||
xref syscall_vmem_map_free_to
|
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
|
endif
|
||||||
|
12
syscalls.68k
12
syscalls.68k
@ -67,4 +67,14 @@ syscall_vmem_map_free_to:
|
|||||||
trap #0
|
trap #0
|
||||||
move.l (a7)+, d3
|
move.l (a7)+, d3
|
||||||
rts
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user