From 000ac6ad65fd9206fd7f2c9f2fcb656fd5aad978 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 19 Mar 2024 12:48:55 -0500 Subject: [PATCH] Add syscall for vmem_set_flags --- syscalls.68k | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syscalls.68k b/syscalls.68k index 5528e64..80ca99b 100644 --- a/syscalls.68k +++ b/syscalls.68k @@ -54,6 +54,14 @@ syscall_vmem_map_free_to: ori.l #$4, d3 jmp vmem_map_free_to + +; Sets the permission flags of the range of virtual pages starting at address a0 with length d2 to d1 +syscall_vmem_set_flags: + move.l d1, d0 + move.l d2, d1 + move.l #0, d2 + jmp vmem_set_flags + section .data,data syscall_table: align 1 @@ -64,3 +72,4 @@ syscall_table: dc.l syscall_vmem_map dc.l syscall_vmem_map_free dc.l syscall_vmem_map_free_to + dc.l syscall_vmem_set_flags