summaryrefslogtreecommitdiffstats
path: root/sys/syscall.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-06 16:50:28 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-06 16:50:28 -0400
commit4ca0bdf61196d0c3fd3f0fdbfb2d72481025cca2 (patch)
tree6b4a16ec7300ef0dfb2e45224fb199b67028684f /sys/syscall.h
parent779b7fc1fe91e5a355b6e15de882d46b26ab2270 (diff)
downloadjove-kernel-4ca0bdf61196d0c3fd3f0fdbfb2d72481025cca2.tar.gz
jove-kernel-4ca0bdf61196d0c3fd3f0fdbfb2d72481025cca2.tar.bz2
jove-kernel-4ca0bdf61196d0c3fd3f0fdbfb2d72481025cca2.zip
add syscall for vtt_write
Diffstat (limited to 'sys/syscall.h')
-rw-r--r--sys/syscall.h45
1 files changed, 19 insertions, 26 deletions
diff --git a/sys/syscall.h b/sys/syscall.h
index efd3f64..6ad221f 100644
--- a/sys/syscall.h
+++ b/sys/syscall.h
@@ -11,33 +11,26 @@ struct syscall_header
uint16_t path[];
};
-typedef int (*syscall_handle_t)(
- jove_owned_obj_t*, //PCB object
- jove_owned_obj_t*, //Objdir object
- jove_owned_obj_t*, //Message object
- jove_owned_obj_t*, //Target object
- struct syscall_header*, //Syscall header
- size_t, //How many bytes are left in the message
- void*); //The bytes left in the message.
+#define SYSCALL_FUNCTION_ARGS \
+ jove_owned_obj_t*, /*PCB object*/ \
+ jove_owned_obj_t*, /*Objdir object*/ \
+ jove_owned_obj_t*, /*Message object*/ \
+ jove_owned_obj_t*, /*Target object*/ \
+ struct syscall_header*, /*Syscall header*/ \
+ size_t, /*How many bytes are left in the message*/ \
+ void* /*The bytes left in the message.*/
-int
-_syscall_handle_generic(
- jove_owned_obj_t *pcb_obj,
- jove_owned_obj_t *objdir,
- jove_owned_obj_t *message_obj,
- jove_owned_obj_t *target_obj,
- struct syscall_header *header,
- size_t bytes_left,
- void *payload);
+typedef int (*syscall_handle_t)(SYSCALL_FUNCTION_ARGS);
-int
-syscall_handle_arch(
- jove_owned_obj_t *pcb_obj,
- jove_owned_obj_t *objdir,
- jove_owned_obj_t *message_obj,
- jove_owned_obj_t *target_obj,
- struct syscall_header *header,
- size_t bytes_left,
- void *payload);
+int _syscall_handle_generic(SYSCALL_FUNCTION_ARGS);
+int _syscall_handle_arch(SYSCALL_FUNCTION_ARGS);
+
+#define SYSCALL_VTT_WRITE 0
+struct syscall_vtt_write
+{
+ size_t len;
+ char data[];
+};
+int _syscall_handle_vtt(SYSCALL_FUNCTION_ARGS);
#endif