Don't know what this was supposed to do, but with the VADDR_TO_PDENT() it would
end up as 0 again in any case. It certainly looks correct without it, removing so it doesn't confuse the next one reading over it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32994 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -295,10 +295,9 @@ map_max_pages_need(vm_translation_map */*map*/, addr_t start, addr_t end)
|
|||||||
{
|
{
|
||||||
// If start == 0, the actual base address is not yet known to the caller and
|
// If start == 0, the actual base address is not yet known to the caller and
|
||||||
// we shall assume the worst case.
|
// we shall assume the worst case.
|
||||||
if (start == 0) {
|
if (start == 0)
|
||||||
start = 1023 * B_PAGE_SIZE;
|
|
||||||
end += 1023 * B_PAGE_SIZE;
|
end += 1023 * B_PAGE_SIZE;
|
||||||
}
|
|
||||||
return VADDR_TO_PDENT(end) + 1 - VADDR_TO_PDENT(start);
|
return VADDR_TO_PDENT(end) + 1 - VADDR_TO_PDENT(start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user