diff options
| author | Miguel <m.i@gmx.at> | 2018-08-23 03:20:56 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-23 03:20:56 +0200 |
| commit | 4404fa9b3d98646f942e32146722a9d0a68edc13 (patch) | |
| tree | 79e494ec81a462db0217fc763a7ddae1827c02bd /kernel/syscalls.c | |
| parent | 98bf7b67543b36b6fe49f2b68c115ebeaf630603 (diff) | |
never ending struggle with forking
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) |
