From d949b2a3674938bff6f13000afc7d7c4ebc349d1 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Tue, 4 Aug 2020 22:38:00 -0700 Subject: [PATCH] Kernel: Use Userspace for the set_mmap_name syscall --- Kernel/Process.h | 2 +- Kernel/Syscalls/mmap.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 07198c9efa..b329db5b3c 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -225,7 +225,7 @@ public: pid_t sys$waitid(Userspace); void* sys$mmap(Userspace); int sys$munmap(void*, size_t size); - int sys$set_mmap_name(const Syscall::SC_set_mmap_name_params*); + int sys$set_mmap_name(Userspace); int sys$mprotect(void*, size_t, int prot); int sys$madvise(void*, size_t, int advice); int sys$minherit(void*, size_t, int inherit); diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index 243d035008..e99be2775a 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -331,7 +331,7 @@ int Process::sys$minherit(void* address, size_t size, int inherit) return -EINVAL; } -int Process::sys$set_mmap_name(const Syscall::SC_set_mmap_name_params* user_params) +int Process::sys$set_mmap_name(Userspace user_params) { REQUIRE_PROMISE(stdio);