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
This commit is contained in:
Ingo Weinhold
2010-02-23 13:51:41 +00:00
parent 1e3815ba3b
commit 682c3066c7
+4 -2
View File
@@ -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;
}