From aa8a8811818331cf511681327e3ba95e456f0d33 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 2 May 2020 15:44:11 +0200 Subject: Added many syscalls to get better POSIX compliance --- src/kernel/syscall/syscall.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/kernel/syscall/syscall.c') diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c index 7433799..d09ee33 100644 --- a/src/kernel/syscall/syscall.c +++ b/src/kernel/syscall/syscall.c @@ -9,12 +9,14 @@ typedef uint32_t (*syscall_func)(uint32_t, ...); uint32_t (*syscalls[])() = { [0] = (uint32_t(*)())halt_loop, // DEBUG! - [1] = sys_exec, - [2] = (uint32_t(*)())sys_putch, - [3] = sys_scancode, - [4] = sys_malloc, - [5] = sys_free, - [6] = sys_pointers }; + [1] = sys_exit, + [2] = sys_fork, + [3] = sys_read, + [4] = sys_write, + [5] = sys_exec, + [6] = sys_get_pid, + [7] = sys_malloc, + [8] = sys_free }; void syscall_handler(struct regs *r) { -- cgit v1.2.3