mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Use Userspace<T> in setkeymap syscall
This commit is contained in:
parent
e67d0c9eef
commit
ba4cf59d04
Notes:
sideshowbarker
2024-07-19 04:24:02 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/ba4cf59d04a Pull-request: https://github.com/SerenityOS/serenity/pull/2954
@ -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 {
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user