From 5e36c12a42e9910734f26acbe5aaccb0776f8478 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 11 May 2011 19:10:26 +0000 Subject: [PATCH] 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 --- src/system/boot/platform/bios_ia32/mmu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/boot/platform/bios_ia32/mmu.cpp b/src/system/boot/platform/bios_ia32/mmu.cpp index 100c3512e6..b80f4c4420 100644 --- a/src/system/boot/platform/bios_ia32/mmu.cpp +++ b/src/system/boot/platform/bios_ia32/mmu.cpp @@ -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; }