From c103aef2b3aef83d8f657812e0ef5e3d8fec0593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 12 Apr 2008 13:36:33 +0000 Subject: [PATCH] disabled check for memory overlaps for the time being git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24946 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_vm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/kernel/arch/x86/arch_vm.cpp b/src/system/kernel/arch/x86/arch_vm.cpp index 74ae535405..7746915c23 100644 --- a/src/system/kernel/arch/x86/arch_vm.cpp +++ b/src/system/kernel/arch/x86/arch_vm.cpp @@ -169,6 +169,7 @@ set_memory_type(int32 id, uint64 base, uint64 length, uint32 type) if (sMemoryTypeRegisterCount == 0) return B_NOT_SUPPORTED; +#if 0 // check if it overlaps if (type == IA32_MTR_WRITE_COMBINING && is_memory_overlapping(base, length, &index)) { @@ -178,6 +179,7 @@ set_memory_type(int32 id, uint64 base, uint64 length, uint32 type) } // we replace an existing write-combining mtrr with a bigger one at the index position } +#endif // length must be a power of 2; just round it up to the next value length = nearest_power(length);