summaryrefslogtreecommitdiff
path: root/kernel/syscalls
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-28 20:07:50 +0100
committerAnton Kling <anton@kling.gg>2023-11-28 20:07:50 +0100
commit636858dbbd48ed9f5073793b46740302aa202f43 (patch)
treecf976c2b5a61ba055f0877317afdaf6e871df80e /kernel/syscalls
parent89dc5dd5ba1e9cfe7a8975086c1d5638f8fbbac5 (diff)
Kernel: Add basic IPC and move to microkernel design.
The IPC design is currently a WIP and is nowhere near complete
Diffstat (limited to 'kernel/syscalls')
-rw-r--r--kernel/syscalls/ipc.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/syscalls/ipc.c b/kernel/syscalls/ipc.c
new file mode 100644
index 0000000..b6947d1
--- /dev/null
+++ b/kernel/syscalls/ipc.c
@@ -0,0 +1,18 @@
+#include <ipc.h>
+#include <syscalls.h>
+
+int syscall_ipc_register_endpoint(u32 id) {
+ return ipc_register_endpoint(id);
+}
+
+int syscall_ipc_read(u8 *buffer, u32 length, u32 *sender_pid) {
+ return ipc_read(buffer, length, sender_pid);
+}
+
+int syscall_ipc_write_to_process(int pid, u8 *buffer, u32 length) {
+ return ipc_write_to_process(pid, buffer, length);
+}
+
+int syscall_ipc_write(int endpoint, u8 *buffer, u32 length) {
+ return ipc_write(endpoint, buffer, length);
+}