summaryrefslogtreecommitdiffstats
path: root/syscall
diff options
context:
space:
mode:
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;