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:
parent
49ee5efea7
commit
6a70dbc397
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue