cpu/x86/mtrr: Add MTRR index and total MTRRs to error message

Change-Id: I626a11c17c9d05c174c507d50684e498c8604cbc
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/11905
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Paul Menzel 2015-10-15 12:41:53 +02:00 committed by Ronald G. Minnich
parent 49ee5efea7
commit 6a70dbc397
1 changed files with 3 additions and 1 deletions

View File

@ -429,7 +429,9 @@ static void prep_var_mtrr(struct var_mtrr_state *var_state,
if (var_state->mtrr_index >= bios_mtrrs)
printk(BIOS_WARNING, "Taking a reserved OS MTRR.\n");
if (var_state->mtrr_index >= total_mtrrs) {
printk(BIOS_ERR, "ERROR: Not enough MTRRs available!\n");
printk(BIOS_ERR, "ERROR: Not enough MTRRs available! MTRR index"
"is %d with %d MTTRs in total.\n",
var_state->mtrr_index, total_mtrrs);
return;
}