mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-12 17:37:53 +03:00
Kernel: Use Userspace<T> in sys$get_stack_bounds()
This commit is contained in:
parent
122c7b6cbb
commit
b5f32be577
Notes:
sideshowbarker
2024-07-18 21:48:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b5f32be5776
@ -346,7 +346,7 @@ public:
|
||||
KResultOr<int> sys$pledge(Userspace<const Syscall::SC_pledge_params*>);
|
||||
KResultOr<int> sys$unveil(Userspace<const Syscall::SC_unveil_params*>);
|
||||
KResultOr<int> sys$perf_event(int type, FlatPtr arg1, FlatPtr arg2);
|
||||
KResultOr<int> sys$get_stack_bounds(FlatPtr* stack_base, size_t* stack_size);
|
||||
KResultOr<int> sys$get_stack_bounds(Userspace<FlatPtr*> stack_base, Userspace<size_t*> stack_size);
|
||||
KResultOr<int> sys$ptrace(Userspace<const Syscall::SC_ptrace_params*>);
|
||||
KResultOr<int> sys$sendfd(int sockfd, int fd);
|
||||
KResultOr<int> sys$recvfd(int sockfd, int options);
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
KResultOr<int> Process::sys$get_stack_bounds(FlatPtr* user_stack_base, size_t* user_stack_size)
|
||||
KResultOr<int> Process::sys$get_stack_bounds(Userspace<FlatPtr*> user_stack_base, Userspace<size_t*> user_stack_size)
|
||||
{
|
||||
FlatPtr stack_pointer = Thread::current()->get_register_dump_from_stack().userspace_esp;
|
||||
auto* stack_region = space().find_region_containing(Range { VirtualAddress(stack_pointer), 1 });
|
||||
|
Loading…
Reference in New Issue
Block a user