From 1eeaed31c2fa533d38ecfb9ac18e7233eb34a4c0 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Tue, 4 Aug 2020 22:16:59 -0700 Subject: [PATCH] Kernel: Use Userspace for the open syscall --- Kernel/Process.h | 2 +- Kernel/Syscalls/open.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 5380a442ae..12e4d373cb 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -211,7 +211,7 @@ public: int sys$getresuid(uid_t*, uid_t*, uid_t*); int sys$getresgid(gid_t*, gid_t*, gid_t*); mode_t sys$umask(mode_t); - int sys$open(const Syscall::SC_open_params*); + int sys$open(Userspace); int sys$close(int fd); ssize_t sys$read(int fd, Userspace, ssize_t); ssize_t sys$write(int fd, const u8*, ssize_t); diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp index 840b00c911..0d8a3d5e48 100644 --- a/Kernel/Syscalls/open.cpp +++ b/Kernel/Syscalls/open.cpp @@ -31,7 +31,7 @@ namespace Kernel { -int Process::sys$open(const Syscall::SC_open_params* user_params) +int Process::sys$open(Userspace user_params) { Syscall::SC_open_params params; if (!validate_read_and_copy_typed(¶ms, user_params))