From d3847b3489a96ed1c70c6368b2a0ef535853d357 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 Aug 2020 15:45:39 -0700 Subject: Kernel: Use Userspace for the join_thread syscall --- Kernel/Process.h | 2 +- Kernel/Syscalls/thread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 0795dcd038..7d2caa8d6b 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -306,7 +306,7 @@ public: int sys$sched_getparam(pid_t pid, Userspace); int sys$create_thread(void* (*)(void*), Userspace); void sys$exit_thread(void*); - int sys$join_thread(pid_t tid, void** exit_value); + int sys$join_thread(pid_t tid, Userspace exit_value); int sys$detach_thread(pid_t tid); int sys$set_thread_name(pid_t tid, Userspace buffer, size_t buffer_size); int sys$get_thread_name(pid_t tid, Userspace buffer, size_t buffer_size); diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index c84aaae00b..e67bfc0d96 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -117,7 +117,7 @@ int Process::sys$detach_thread(pid_t tid) return 0; } -int Process::sys$join_thread(pid_t tid, void** exit_value) +int Process::sys$join_thread(pid_t tid, Userspace exit_value) { REQUIRE_PROMISE(thread); if (exit_value && !validate_write_typed(exit_value)) -- cgit v1.2.3