mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Use Userspace<T> for the mmap syscall
This commit is contained in:
parent
74d3b202f1
commit
901dae0227
Notes:
sideshowbarker
2024-07-19 04:18:03 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/901dae02272 Pull-request: https://github.com/SerenityOS/serenity/pull/2996
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user