diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-06 17:11:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-06 18:56:51 +0200 |
commit | cd8d52e6aedc551967119e3a9e58f70b2bbb4533 (patch) | |
tree | dba8e3022282a86a5c45700bd45a02d0e9789420 /Kernel/Syscalls/execve.cpp | |
parent | 298cd57fe7572f752c78d62a1225f4c37bd57791 (diff) | |
download | serenity-cd8d52e6aedc551967119e3a9e58f70b2bbb4533.zip |
Kernel: Improve API names for switching address spaces
- enter_space => enter_address_space
- enter_process_paging_scope => enter_process_address_space
Diffstat (limited to 'Kernel/Syscalls/execve.cpp')
-rw-r--r-- | Kernel/Syscalls/execve.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp index 15087db6eb..8545e3ddee 100644 --- a/Kernel/Syscalls/execve.cpp +++ b/Kernel/Syscalls/execve.cpp @@ -278,7 +278,7 @@ static KResultOr<LoadResult> load_elf_object(NonnullOwnPtr<Memory::AddressSpace> String elf_name = object_description.absolute_path(); VERIFY(!Processor::in_critical()); - Memory::MemoryManager::enter_space(*new_space); + Memory::MemoryManager::enter_address_space(*new_space); KResult ph_load_result = KSuccess; elf_image.for_each_program_header([&](const ELF::Image::ProgramHeader& program_header) { @@ -434,7 +434,7 @@ KResultOr<LoadResult> Process::load(NonnullRefPtr<FileDescription> main_program_ auto new_space = TRY(Memory::AddressSpace::try_create(nullptr)); ScopeGuard space_guard([&]() { - Memory::MemoryManager::enter_process_paging_scope(*this); + Memory::MemoryManager::enter_process_address_space(*this); }); auto load_offset = TRY(get_load_offset(main_program_header, main_program_description, interpreter_description)); @@ -524,7 +524,7 @@ KResult Process::do_exec(NonnullRefPtr<FileDescription> main_program_description TemporaryChange global_profiling_disabler(g_profiling_all_threads, false); m_space = load_result.space.release_nonnull(); } - Memory::MemoryManager::enter_space(*m_space); + Memory::MemoryManager::enter_address_space(*m_space); m_executable = main_program_description->custody(); m_arguments = arguments; |