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:
Ingo Weinhold 2011-05-11 19:10:26 +00:00
parent a56cbb2afb
commit 5e36c12a42

View File

@ -437,8 +437,8 @@ mmu_allocate_physical(addr_t base, size_t size)
// check whether the physical range is still free
phys_addr_t foundBase;
if (!get_free_physical_address_range(gKernelArgs.physical_allocated_range,
gKernelArgs.num_physical_allocated_ranges, sNextPhysicalAddress,
size, &foundBase) || foundBase != base) {
gKernelArgs.num_physical_allocated_ranges, base, size, &foundBase)
|| foundBase != base) {
return false;
}