summaryrefslogtreecommitdiffstats
path: root/lib/libjove/syscall/invoke.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:46:33 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:46:33 -0400
commit65ba015d6c1f248d36ad01a653bc49637804b15b (patch)
treea77c3fb3ca7ecac8f65eb9638d152f1e90307d0a /lib/libjove/syscall/invoke.c
downloadjove-os-65ba015d6c1f248d36ad01a653bc49637804b15b.tar.gz
jove-os-65ba015d6c1f248d36ad01a653bc49637804b15b.tar.bz2
jove-os-65ba015d6c1f248d36ad01a653bc49637804b15b.zip
working usermode objdir iteration
Diffstat (limited to 'lib/libjove/syscall/invoke.c')
-rw-r--r--lib/libjove/syscall/invoke.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libjove/syscall/invoke.c b/lib/libjove/syscall/invoke.c
new file mode 100644
index 0000000..e673623
--- /dev/null
+++ b/lib/libjove/syscall/invoke.c
@@ -0,0 +1,14 @@
+#include <syscall.h>
+#include <kernel/syscall.h>
+#include <jove.h>
+
+int
+_syscall_invoke(void)
+{
+ register uint64_t box asm ("rdi") = _syscall_message_box;
+ register uint64_t call asm ("rsi") = SYSCALL_INVOKE;
+
+ int status = 0;
+ __asm__ volatile("syscall": "=a"(status) :: "memory");
+ return status;
+}