From f46ab8ca2050ee77edf6e6b979875426bdaf29dc Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 13 Mar 2024 09:58:22 -0400 Subject: fix incorrect tss rsp assignment --- usr/syscall.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr/syscall.c') 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 }; -- cgit v1.2.1