Kernel: Use Userspace<T> for the mmap syscall

This commit is contained in:
Brian Gianforcaro 2020-08-04 22:30:40 -07:00 committed by Andreas Kling
parent 74d3b202f1
commit 901dae0227
Notes: sideshowbarker 2024-07-19 04:18:03 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ public:
[[noreturn]] void sys$exit(int status);
int sys$sigreturn(RegisterState& registers);
pid_t sys$waitid(Userspace<const Syscall::SC_waitid_params*>);
void* sys$mmap(const Syscall::SC_mmap_params*);
void* sys$mmap(Userspace<const Syscall::SC_mmap_params*>);
int sys$munmap(void*, size_t size);
int sys$set_mmap_name(const Syscall::SC_set_mmap_name_params*);
int sys$mprotect(void*, size_t, int prot);

View File

@ -76,7 +76,7 @@ static bool validate_inode_mmap_prot(const Process& process, int prot, const Ino
return true;
}
void* Process::sys$mmap(const Syscall::SC_mmap_params* user_params)
void* Process::sys$mmap(Userspace<const Syscall::SC_mmap_params*> user_params)
{
REQUIRE_PROMISE(stdio);