aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 15:44:11 +0200
committerMarvin Borner2020-05-02 15:44:11 +0200
commitaa8a8811818331cf511681327e3ba95e456f0d33 (patch)
tree852c314dae76e756863f94639ff45eff72834d5d /src/kernel/syscall/syscall.c
parent2a0e810a473dea57fd1cd53ea424b61269c029ba (diff)
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/kernel/syscall/syscall.c')
-rw-r--r--src/kernel/syscall/syscall.c14
1 files changed, 8 insertions, 6 deletions
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)
{