1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

Kernel: Use the templated copy_to/from_user() in more places

These ensure that the "to" and "from" pointers have the same type,
and also that we copy the correct number of bytes.
This commit is contained in:
Andreas Kling 2020-01-20 13:38:31 +01:00
parent d5426fcc88
commit e901a3695a
3 changed files with 21 additions and 21 deletions

View file

@ -365,7 +365,7 @@ public:
FPUState& fpu_state() { return *m_fpu_state; }
void set_default_signal_dispositions();
void push_value_on_stack(u32);
void push_value_on_stack(uintptr_t);
u32 make_userspace_stack_for_main_thread(Vector<String> arguments, Vector<String> environment);