diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-06 17:22:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-06 18:56:51 +0200 |
commit | f16b9a691f382ffb32880cdc3af4f6b87329da52 (patch) | |
tree | 3815e65aa20c4add8d536816e02609a82417b061 /Kernel/Arch/x86 | |
parent | cd8d52e6aedc551967119e3a9e58f70b2bbb4533 (diff) | |
download | serenity-f16b9a691f382ffb32880cdc3af4f6b87329da52.zip |
Kernel: Rename ProcessPagingScope => ScopedAddressSpaceSwitcher
Diffstat (limited to 'Kernel/Arch/x86')
-rw-r--r-- | Kernel/Arch/x86/common/Processor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Arch/x86/common/Processor.cpp b/Kernel/Arch/x86/common/Processor.cpp index c7d29bbda4..094f3fdc57 100644 --- a/Kernel/Arch/x86/common/Processor.cpp +++ b/Kernel/Arch/x86/common/Processor.cpp @@ -10,7 +10,7 @@ #include <AK/Types.h> #include <Kernel/Interrupts/APIC.h> -#include <Kernel/Memory/ProcessPagingScope.h> +#include <Kernel/Memory/ScopedAddressSpaceSwitcher.h> #include <Kernel/Process.h> #include <Kernel/Sections.h> #include <Kernel/StdLib.h> @@ -522,7 +522,7 @@ Vector<FlatPtr> Processor::capture_stack_trace(Thread& thread, size_t max_frames thread.cpu(), [&]() { dbgln("CPU[{}] getting stack for cpu #{}", Processor::current_id(), proc.id()); - ProcessPagingScope paging_scope(thread.process()); + ScopedAddressSpaceSwitcher switcher(thread.process()); VERIFY(&Processor::current() != &proc); VERIFY(&thread == Processor::current_thread()); // NOTE: Because the other processor is still holding the @@ -548,7 +548,7 @@ Vector<FlatPtr> Processor::capture_stack_trace(Thread& thread, size_t max_frames // stack. Before switching out of that thread, it switch_context // pushed the callee-saved registers, and the last of them happens // to be ebp. - ProcessPagingScope paging_scope(thread.process()); + ScopedAddressSpaceSwitcher switcher(thread.process()); auto& regs = thread.regs(); auto* stack_top = reinterpret_cast<FlatPtr*>(regs.sp()); if (Memory::is_user_range(VirtualAddress(stack_top), sizeof(FlatPtr))) { |