From ddc4fbc15223e362896a9f42beca73f05f48e664 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 18 Sep 2025 13:52:58 -0400 Subject: move usermode-critical info to include/api --- syscall/handler.c | 5 ++--- syscall/invoke-untyped.c | 4 ++-- syscall/invoke_objdir.c | 7 ++++--- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'syscall') diff --git a/syscall/handler.c b/syscall/handler.c index 5bc3c6f..da36e17 100644 --- a/syscall/handler.c +++ b/syscall/handler.c @@ -1,11 +1,10 @@ -#include "syscall.h" +#include "api/syscall.h" +#include "api/error.h" #include "object.h" #include "handles.h" #include "device/processor.h" #include "print.h" -#include "error.h" #include "lock.h" -#include "memory.h" #include #include diff --git a/syscall/invoke-untyped.c b/syscall/invoke-untyped.c index 483d36f..ae9482f 100644 --- a/syscall/invoke-untyped.c +++ b/syscall/invoke-untyped.c @@ -1,7 +1,7 @@ #include "handles.h" #include "object.h" -#include "syscall.h" -#include "error.h" +#include "api/syscall.h" +#include "api/error.h" #include "memory.h" #include "print.h" diff --git a/syscall/invoke_objdir.c b/syscall/invoke_objdir.c index 0cc5a44..8f0a923 100644 --- a/syscall/invoke_objdir.c +++ b/syscall/invoke_objdir.c @@ -1,6 +1,6 @@ #include "handles.h" -#include "syscall.h" -#include "error.h" +#include "api/syscall.h" +#include "api/error.h" #include "lock.h" #include "string.h" #include "print.h" @@ -15,8 +15,9 @@ s_handle_invoke_objdir_getmemb( { path_byte_t member; obj_type_t *dest; - SYSCALL_PAYLOAD_TAKEL(payload, payload_at, member, uint8_t); + + payload_at = 0; SYSCALL_PAYLOAD_TAKEP(payload, payload_at, dest, obj_type_t); *dest = target_dir->entries[member].type; -- cgit v1.2.1