diff options
author | Marvin Borner | 2021-01-09 23:31:28 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-09 23:33:34 +0100 |
commit | ff9c7766edded74f4d522484c828b1bdc7dfa96d (patch) | |
tree | fc076342222b6eb0c200a9bbb028c7765ed758b2 /kernel/features/syscall.c | |
parent | 836294b9232c7d63d26db4f87c32cf1420cd856d (diff) |
Let's make a procfs for IPC instead
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r-- | kernel/features/syscall.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c index a6bfb2a..bb174a1 100644 --- a/kernel/features/syscall.c +++ b/kernel/features/syscall.c @@ -1,7 +1,6 @@ // MIT License, Copyright (c) 2020 Marvin Borner #include <cpu.h> -#include <event.h> #include <fs.h> #include <interrupts.h> #include <load.h> @@ -74,23 +73,6 @@ void syscall_handler(struct regs *r) r->eax = timer_get(); break; } - case SYS_REGISTER: { - event_register(r->ebx, proc_current()); - break; - } - case SYS_UNREGISTER: { - event_unregister(r->ebx, proc_current()); - break; - } - case SYS_SEND: { - proc_send(proc_current(), proc_from_pid(r->ebx), r->ecx, (void *)r->edx); - proc_yield(r); - break; - } - case SYS_RECEIVE: { - r->eax = proc_receive(proc_current(), (void *)r->ebx); - break; - } case SYS_GETPID: { r->eax = proc_current()->pid; break; |