Kernel: Use Userspace<T> in setkeymap syscall

This commit is contained in:
Brian Gianforcaro 2020-08-01 16:34:01 -07:00 committed by Andreas Kling
parent e67d0c9eef
commit ba4cf59d04
Notes: sideshowbarker 2024-07-19 04:24:02 +09:00
3 changed files with 6 additions and 6 deletions

View File

@ -345,10 +345,10 @@ struct SC_futex_params {
}; };
struct SC_setkeymap_params { struct SC_setkeymap_params {
const u32* map; Userspace<const u32*> map;
const u32* shift_map; Userspace<const u32*> shift_map;
const u32* alt_map; Userspace<const u32*> alt_map;
const u32* altgr_map; Userspace<const u32*> altgr_map;
}; };
struct SC_create_thread_params { struct SC_create_thread_params {

View File

@ -313,7 +313,7 @@ public:
int sys$set_process_icon(int icon_id); int sys$set_process_icon(int icon_id);
int sys$realpath(const Syscall::SC_realpath_params*); int sys$realpath(const Syscall::SC_realpath_params*);
ssize_t sys$getrandom(void*, size_t, unsigned int); ssize_t sys$getrandom(void*, size_t, unsigned int);
int sys$setkeymap(const Syscall::SC_setkeymap_params*); int sys$setkeymap(Userspace<const Syscall::SC_setkeymap_params*>);
int sys$module_load(const char* path, size_t path_length); int sys$module_load(const char* path, size_t path_length);
int sys$module_unload(const char* name, size_t name_length); int sys$module_unload(const char* name, size_t name_length);
int sys$profiling_enable(pid_t); int sys$profiling_enable(pid_t);

View File

@ -29,7 +29,7 @@
namespace Kernel { namespace Kernel {
int Process::sys$setkeymap(const Syscall::SC_setkeymap_params* user_params) int Process::sys$setkeymap(Userspace<const Syscall::SC_setkeymap_params*> user_params)
{ {
REQUIRE_PROMISE(setkeymap); REQUIRE_PROMISE(setkeymap);