diff options
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r-- | Kernel/VM/MemoryManager.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 06e66f670b..b147bbfc06 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -454,12 +454,6 @@ void MemoryManager::enter_process_paging_scope(Process& process) asm volatile("movl %%eax, %%cr3"::"a"(process.page_directory().cr3()):"memory"); } -void MemoryManager::enter_kernel_paging_scope() -{ - InterruptDisabler disabler; - asm volatile("movl %%eax, %%cr3"::"a"(kernel_page_directory().cr3()):"memory"); -} - void MemoryManager::flush_entire_tlb() { asm volatile( @@ -666,14 +660,3 @@ ProcessPagingScope::~ProcessPagingScope() { MM.enter_process_paging_scope(current->process()); } - -KernelPagingScope::KernelPagingScope() -{ - ASSERT(current); - MM.enter_kernel_paging_scope(); -} - -KernelPagingScope::~KernelPagingScope() -{ - MM.enter_process_paging_scope(current->process()); -} |