mmu_allocate_physical(): The wrong base argument was passed to
get_free_physical_address_range(). Fixes the debug syslog feature. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a56cbb2afb
commit
5e36c12a42
@ -437,8 +437,8 @@ mmu_allocate_physical(addr_t base, size_t size)
|
|||||||
// check whether the physical range is still free
|
// check whether the physical range is still free
|
||||||
phys_addr_t foundBase;
|
phys_addr_t foundBase;
|
||||||
if (!get_free_physical_address_range(gKernelArgs.physical_allocated_range,
|
if (!get_free_physical_address_range(gKernelArgs.physical_allocated_range,
|
||||||
gKernelArgs.num_physical_allocated_ranges, sNextPhysicalAddress,
|
gKernelArgs.num_physical_allocated_ranges, base, size, &foundBase)
|
||||||
size, &foundBase) || foundBase != base) {
|
|| foundBase != base) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user