diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 2af8cf9..24706d3 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -18,7 +18,10 @@ int sc_debuglog(const char *msg, size_t len) { return len; } -int syscall_handler(int num, int a, int b, int c) { +int syscall_handler(int num, int a, int b, int c, void *stack, void *eip) { + process_current->esp = stack; + process_current->eip = eip; + switch (num) { case SC_DEBUGLOG: return sc_debuglog((void*)a, b); |