diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-13 09:58:22 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-13 09:58:22 -0400 |
commit | f46ab8ca2050ee77edf6e6b979875426bdaf29dc (patch) | |
tree | 1877f76c37adc4c7f7ea98a24f2cd1a61432ac63 /usr/syscall.c | |
parent | d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d (diff) | |
download | jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.tar.gz jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.tar.bz2 jove-kernel-f46ab8ca2050ee77edf6e6b979875426bdaf29dc.zip |
fix incorrect tss rsp assignment
Diffstat (limited to 'usr/syscall.c')
-rw-r--r-- | usr/syscall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/syscall.c b/usr/syscall.c index 0ea5700..834bd5b 100644 --- a/usr/syscall.c +++ b/usr/syscall.c @@ -1,4 +1,5 @@ #include "syscall.h" +#include "tsk/tasking.h" #include "mem/memory.h" #include "io/log.h" @@ -10,6 +11,11 @@ int _syscall_handler_log(struct syscall_log *req) return 0; } +intmax_t _syscall_handler_tid(syscall_t *req) +{ + return task_current->id; +} + void *_syscall_handlers[SYSCALL_COUNT] = { _syscall_handler_log }; |