1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Kernel: Use Userspace<T> in sys$get_stack_bounds()

This commit is contained in:
Andreas Kling 2021-03-01 14:50:36 +01:00
parent 122c7b6cbb
commit b5f32be577
2 changed files with 2 additions and 2 deletions

View file

@ -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 });