From f16b9a691f382ffb32880cdc3af4f6b87329da52 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Sep 2021 17:22:36 +0200 Subject: Kernel: Rename ProcessPagingScope => ScopedAddressSpaceSwitcher --- Kernel/Arch/x86/common/Processor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel/Arch/x86') 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 #include -#include +#include #include #include #include @@ -522,7 +522,7 @@ Vector 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 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(regs.sp()); if (Memory::is_user_range(VirtualAddress(stack_top), sizeof(FlatPtr))) { -- cgit v1.2.3