diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 200e1d7fd1a..98b21775873 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -345,10 +345,10 @@ struct SC_futex_params { }; struct SC_setkeymap_params { - const u32* map; - const u32* shift_map; - const u32* alt_map; - const u32* altgr_map; + Userspace map; + Userspace shift_map; + Userspace alt_map; + Userspace altgr_map; }; struct SC_create_thread_params { diff --git a/Kernel/Process.h b/Kernel/Process.h index f5f9bbfa198..dca33107c50 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -313,7 +313,7 @@ public: int sys$set_process_icon(int icon_id); int sys$realpath(const Syscall::SC_realpath_params*); ssize_t sys$getrandom(void*, size_t, unsigned int); - int sys$setkeymap(const Syscall::SC_setkeymap_params*); + int sys$setkeymap(Userspace); int sys$module_load(const char* path, size_t path_length); int sys$module_unload(const char* name, size_t name_length); int sys$profiling_enable(pid_t); diff --git a/Kernel/Syscalls/setkeymap.cpp b/Kernel/Syscalls/setkeymap.cpp index 8c89a040bac..b8f34b6a10c 100644 --- a/Kernel/Syscalls/setkeymap.cpp +++ b/Kernel/Syscalls/setkeymap.cpp @@ -29,7 +29,7 @@ namespace Kernel { -int Process::sys$setkeymap(const Syscall::SC_setkeymap_params* user_params) +int Process::sys$setkeymap(Userspace user_params) { REQUIRE_PROMISE(setkeymap);