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
This commit is contained in:
Jérôme Duval 2008-04-12 13:36:33 +00:00
parent 2082f2d5c1
commit c103aef2b3

View File

@ -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);