take into account areas starting or ending equally
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24612 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -93,15 +93,15 @@ is_memory_overlapping(uint64 base, uint64 length, int32 *extendedIndex)
|
|||||||
x86_get_mtrr(index, &b, &l, &t);
|
x86_get_mtrr(index, &b, &l, &t);
|
||||||
|
|
||||||
// check first for write combining extensions
|
// check first for write combining extensions
|
||||||
if (base < b
|
if (base <= b
|
||||||
&& (base + length) > (b + l)
|
&& (base + length) >= (b + l)
|
||||||
&& t == IA32_MTR_WRITE_COMBINING) {
|
&& t == IA32_MTR_WRITE_COMBINING) {
|
||||||
*extendedIndex = index;
|
*extendedIndex = index;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ((base > b && base < (b + l))
|
if ((base >= b && base < (b + l))
|
||||||
|| ((base + length) > b
|
|| ((base + length) > b
|
||||||
&& (base + length) < (b + l)))
|
&& (base + length) <= (b + l)))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user