summaryrefslogtreecommitdiffstats
path: root/sys/syscall_untyped.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-10-13 22:31:43 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-10-13 22:31:43 -0400
commit548506392b789f58b1556a6ffca917441e1d89fd (patch)
tree58e4b747446ea64e7951e523353f58510b3a8b2f /sys/syscall_untyped.c
parentc5e3bb7917689bc9ed54fee23a143144fade802d (diff)
downloadjove-kernel-548506392b789f58b1556a6ffca917441e1d89fd.tar.gz
jove-kernel-548506392b789f58b1556a6ffca917441e1d89fd.tar.bz2
jove-kernel-548506392b789f58b1556a6ffca917441e1d89fd.zip
ipc functions. work on process spawning
Diffstat (limited to 'sys/syscall_untyped.c')
-rw-r--r--sys/syscall_untyped.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/syscall_untyped.c b/sys/syscall_untyped.c
index c4378ea..c64dea1 100644
--- a/sys/syscall_untyped.c
+++ b/sys/syscall_untyped.c
@@ -5,6 +5,7 @@
#include "jove.h"
#include "lib/printf.h"
#include "proc/process.h"
+#include "sys/message.h"
#include "sys/objdir.h"
#include "syscall.h"
@@ -148,6 +149,10 @@ int _syscall_handle_untyped(syscall_context_t *ctx)
return s_syscall_untyped_retype_pcb(
ctx->target.obj, &ctx->lockstack, ctx->objdir, ctx->header);
return -EPERM;
+ case SYSCALL_UNTYPED_RETYPE_MESSAGE:
+ if(ctx->target.permissions & SYSCALL_PERM_UNTYPED_RETYPE)
+ return message_new(ctx->target.obj);
+ return -EPERM;
default:
return -EBADCALL;