summaryrefslogtreecommitdiffstats
path: root/syscall
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-09-18 13:52:58 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-09-18 13:52:58 -0400
commitddc4fbc15223e362896a9f42beca73f05f48e664 (patch)
tree30f8ffc989bc66d9d9e67c7321b3d7a9c46dc130 /syscall
parentcfc793e204ba63d281e778a36992b8c86dd0ad88 (diff)
downloadjove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.tar.gz
jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.tar.bz2
jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.zip
move usermode-critical info to include/api
Diffstat (limited to 'syscall')
-rw-r--r--syscall/handler.c5
-rw-r--r--syscall/invoke-untyped.c4
-rw-r--r--syscall/invoke_objdir.c7
3 files changed, 8 insertions, 8 deletions
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 <stdint.h>
#include <stddef.h>
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;