Kernel: Rename thread stacks to more appropriate names

This commit is contained in:
2024-03-27 15:06:24 +02:00
parent 7c2933aae1
commit 1b65f850ee
5 changed files with 40 additions and 42 deletions

View File

@@ -676,9 +676,9 @@ namespace Kernel
LockGuard _(m_process_lock);
if (Thread::current().stack().contains(address))
if (Thread::current().userspace_stack().contains(address))
{
TRY(Thread::current().stack().allocate_page_for_demand_paging(address));
TRY(Thread::current().userspace_stack().allocate_page_for_demand_paging(address));
return true;
}
@@ -1879,7 +1879,7 @@ namespace Kernel
if (vaddr == 0)
return {};
if (vaddr >= thread.stack_base() && vaddr + size <= thread.stack_base() + thread.stack_size())
if (vaddr >= thread.userspace_stack_bottom() && vaddr + size <= thread.userspace_stack_top())
return {};
// FIXME: should we allow cross mapping access?