diff options
Diffstat (limited to 'kernel/syscalls.c')
| -rw-r--r-- | kernel/syscalls.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c index 9f8d136..ba9d68f 100644 --- a/kernel/syscalls.c +++ b/kernel/syscalls.c @@ -1,5 +1,3 @@ - - #include "lib/string/string.h" #include "fs/fs.h" #include "fs/ext2.h" @@ -27,11 +25,15 @@ static uint32_t next_fifo=0; term_out screen; terminal_tty tty1; + +/// there also is task_fork, task_wait, task_exit.. which is in scheduler.c +//////////////////////////////////////// + int syscall_unhandled(int nr) { char msg[256]; tfp_sprintf(msg, "unhandled syscall : %d",nr); - kpanic(msg); + kpanic("%s",msg); } int syscall_gettimeofday(struct timeval *tv, struct timezone *tz) @@ -205,7 +207,6 @@ int syscall_execve(char *name, char **argv, char **env) uint32_t alloc; uint32_t entry_global=load_elf(name,&alloc); - task_set_brk(alloc); if(!entry_global) |
