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:
parent
071f9c3aa2
commit
9fcee65eaf
@ -93,15 +93,15 @@ is_memory_overlapping(uint64 base, uint64 length, int32 *extendedIndex)
|
||||
x86_get_mtrr(index, &b, &l, &t);
|
||||
|
||||
// check first for write combining extensions
|
||||
if (base < b
|
||||
&& (base + length) > (b + l)
|
||||
if (base <= b
|
||||
&& (base + length) >= (b + l)
|
||||
&& t == IA32_MTR_WRITE_COMBINING) {
|
||||
*extendedIndex = index;
|
||||
return true;
|
||||
}
|
||||
if ((base > b && base < (b + l))
|
||||
if ((base >= b && base < (b + l))
|
||||
|| ((base + length) > b
|
||||
&& (base + length) < (b + l)))
|
||||
&& (base + length) <= (b + l)))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user