summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2015-10-15 12:41:53 +0200
committerRonald G. Minnich <rminnich@gmail.com>2015-10-15 23:31:38 +0000
commit6a70dbc3973ff445af05f7d74f2efafd2317e6c9 (patch)
tree3b20b735af48c18f3cbd4947407ab86d0cc79d89 /src/cpu/x86
parent49ee5efea72c5198034a1991491b11facd377653 (diff)
downloadcoreboot-6a70dbc3973ff445af05f7d74f2efafd2317e6c9.tar.xz
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>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/mtrr/mtrr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c
index 072b8877dc..d1559dc235 100644
--- a/src/cpu/x86/mtrr/mtrr.c
+++ b/src/cpu/x86/mtrr/mtrr.c
@@ -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;
}