diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 19e4f65058c..319baf71b1d 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -675,8 +675,6 @@ void MemoryManager::remap_region_page(Region& region, unsigned page_index_in_reg pte.set_writable(false); else pte.set_writable(region.is_writable()); - pte.set_cache_disabled(!region.vmo().m_allow_cpu_caching); - pte.set_write_through(!region.vmo().m_allow_cpu_caching); pte.set_user_allowed(region.is_user_accessible()); region.page_directory()->flush(page_vaddr); #ifdef MM_DEBUG @@ -711,8 +709,6 @@ void MemoryManager::map_region_at_address(PageDirectory& page_directory, Region& pte.set_writable(false); else pte.set_writable(region.is_writable()); - pte.set_cache_disabled(!region.vmo().m_allow_cpu_caching); - pte.set_write_through(!region.vmo().m_allow_cpu_caching); } else { pte.set_physical_page_base(0); pte.set_present(false); diff --git a/Kernel/VM/VMObject.cpp b/Kernel/VM/VMObject.cpp index 45ef59b5677..a695f18e6c2 100644 --- a/Kernel/VM/VMObject.cpp +++ b/Kernel/VM/VMObject.cpp @@ -22,9 +22,7 @@ NonnullRefPtr VMObject::create_anonymous(size_t size) NonnullRefPtr VMObject::create_for_physical_range(PhysicalAddress paddr, size_t size) { size = ceil_div(size, PAGE_SIZE) * PAGE_SIZE; - auto vmo = adopt(*new VMObject(paddr, size)); - vmo->m_allow_cpu_caching = false; - return vmo; + return adopt(*new VMObject(paddr, size)); } NonnullRefPtr VMObject::clone() diff --git a/Kernel/VM/VMObject.h b/Kernel/VM/VMObject.h index 4bd24749cd7..3bc549fd839 100644 --- a/Kernel/VM/VMObject.h +++ b/Kernel/VM/VMObject.h @@ -48,7 +48,6 @@ private: template void for_each_region(Callback); - bool m_allow_cpu_caching { true }; off_t m_inode_offset { 0 }; size_t m_size { 0 }; RefPtr m_inode;