From 682c3066c7af1cda421891c05db37b73e91ff5d2 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 23 Feb 2010 13:51:41 +0000 Subject: [PATCH] Don't complain about running out of MTRRs before the CPU modules have been loaded in the first place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35585 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_vm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_vm.cpp b/src/system/kernel/arch/x86/arch_vm.cpp index ecc1e6cec4..821f1088a6 100644 --- a/src/system/kernel/arch/x86/arch_vm.cpp +++ b/src/system/kernel/arch/x86/arch_vm.cpp @@ -121,8 +121,10 @@ static bool 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; }