diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-06 13:59:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-06 14:05:58 +0200 |
commit | 208147c77cf204e14126754bba4f7483e50213eb (patch) | |
tree | abf7035eeb99b946a215061b1fd48c12065b6538 /Kernel/Syscalls/thread.cpp | |
parent | b7476d7a1b71ecee6488b6daa4cf41753b699646 (diff) | |
download | serenity-208147c77cf204e14126754bba4f7483e50213eb.zip |
Kernel: Rename Process::space() => Process::address_space()
We commonly talk about "a process's address space" so let's nudge the
code towards matching how we talk about it. :^)
Diffstat (limited to 'Kernel/Syscalls/thread.cpp')
-rw-r--r-- | Kernel/Syscalls/thread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index c13eec5d88..e3c3ff9e07 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -31,7 +31,7 @@ KResultOr<FlatPtr> Process::sys$create_thread(void* (*entry)(void*), Userspace<c if (user_sp.has_overflow()) return EOVERFLOW; - if (!MM.validate_user_stack(this->space(), VirtualAddress(user_sp.value() - 4))) + if (!MM.validate_user_stack(this->address_space(), VirtualAddress(user_sp.value() - 4))) return EFAULT; // FIXME: return EAGAIN if Thread::all_threads().size() is greater than PTHREAD_THREADS_MAX @@ -73,7 +73,7 @@ KResultOr<FlatPtr> Process::sys$create_thread(void* (*entry)(void*), Userspace<c regs.rdx = params.rdx; regs.rcx = params.rcx; #endif - regs.cr3 = space().page_directory().cr3(); + regs.cr3 = address_space().page_directory().cr3(); auto tsr_result = thread->make_thread_specific_region({}); if (tsr_result.is_error()) @@ -102,7 +102,7 @@ void Process::sys$exit_thread(Userspace<void*> exit_value, Userspace<void*> stac PerformanceManager::add_thread_exit_event(*current_thread); if (stack_location) { - auto unmap_result = space().unmap_mmap_range(VirtualAddress { stack_location }, stack_size); + auto unmap_result = address_space().unmap_mmap_range(VirtualAddress { stack_location }, stack_size); if (unmap_result.is_error()) dbgln("Failed to unmap thread stack, terminating thread anyway. Error code: {}", unmap_result.error()); } |