diff options
author | Marvin Borner | 2020-04-29 00:39:24 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 00:39:24 +0200 |
commit | 50858d043cbd6f61cc091c6772f981ca2d6cca6b (patch) | |
tree | 82afcc2daf9c4b67d29832923283654913490d06 /src/userspace/libc/syscall.c | |
parent | 34c752f6fe4f71169172f1b3e46b1eddf69eba6e (diff) |
Added basic exec calls for init and started libc
Diffstat (limited to 'src/userspace/libc/syscall.c')
-rw-r--r-- | src/userspace/libc/syscall.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/userspace/libc/syscall.c b/src/userspace/libc/syscall.c index fd27ef5..42786d4 100644 --- a/src/userspace/libc/syscall.c +++ b/src/userspace/libc/syscall.c @@ -5,10 +5,12 @@ */ DEFN_SYSCALL0(halt, 0); -DEFN_SYSCALL1(putch, 1, const char *); +DEFN_SYSCALL1(exec, 1, char *); -DEFN_SYSCALL0(getch, 2); +DEFN_SYSCALL1(putch, 2, char *); -DEFN_SYSCALL1(malloc, 3, uint32_t); +DEFN_SYSCALL0(getch, 3); -DEFN_SYSCALL1(free, 4, uint32_t);
\ No newline at end of file +DEFN_SYSCALL1(malloc, 4, u32); + +DEFN_SYSCALL1(free, 5, u32); |