Author: bonefish Date: 2010-02-23 14:51:41 +0100 (Tue, 23 Feb 2010) New Revision: 35585 Changeset: http://dev.haiku-os.org/changeset/35585/haiku Modified: haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp Log: Don't complain about running out of MTRRs before the CPU modules have been loaded in the first place. Modified: haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp =================================================================== --- haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp 2010-02-23 13:49:30 UTC (rev 35584) +++ haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp 2010-02-23 13:51:41 UTC (rev 35585) @@ -121,8 +121,10 @@ add_used_mtrr(uint64 base, uint64 size, uint32 type) { if (sMemoryTypeRegistersUsed == sMemoryTypeRegisterCount) { - dprintf("add_used_mtrr(%#" B_PRIx64 ", %#" B_PRIx64 ", %" B_PRIu32 - "): out of MTRRs!\n", base, size, type); + if (sMemoryTypeRegisterCount > 0) { + dprintf("add_used_mtrr(%#" B_PRIx64 ", %#" B_PRIx64 ", %" B_PRIu32 + "): out of MTRRs!\n", base, size, type); + } return false; }