diff --git a/Kernel/Process.h b/Kernel/Process.h index 9727fba06ee..0ec32fc5266 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -346,7 +346,7 @@ public: KResultOr sys$pledge(Userspace); KResultOr sys$unveil(Userspace); KResultOr sys$perf_event(int type, FlatPtr arg1, FlatPtr arg2); - KResultOr sys$get_stack_bounds(FlatPtr* stack_base, size_t* stack_size); + KResultOr sys$get_stack_bounds(Userspace stack_base, Userspace stack_size); KResultOr sys$ptrace(Userspace); KResultOr sys$sendfd(int sockfd, int fd); KResultOr sys$recvfd(int sockfd, int options); diff --git a/Kernel/Syscalls/get_stack_bounds.cpp b/Kernel/Syscalls/get_stack_bounds.cpp index 9ffc5fece01..e791b54cab9 100644 --- a/Kernel/Syscalls/get_stack_bounds.cpp +++ b/Kernel/Syscalls/get_stack_bounds.cpp @@ -30,7 +30,7 @@ namespace Kernel { -KResultOr Process::sys$get_stack_bounds(FlatPtr* user_stack_base, size_t* user_stack_size) +KResultOr Process::sys$get_stack_bounds(Userspace user_stack_base, Userspace 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 });