summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-07-06 08:31:32 (GMT)
committerSimon Glass <sjg@chromium.org>2015-07-15 00:03:18 (GMT)
commitdf07d91956162c55f948cf150c14d678eca3b838 (patch)
treee5c63fbc9561db31a578ff0d4e266f54c84d0138
parent92587b364b1750612739438810f17c5b98f406fb (diff)
downloadu-boot-df07d91956162c55f948cf150c14d678eca3b838.tar.xz
x86: cmd_mtrr: Improve MTRR list information
Print the meaningful base address and mask of an MTRR range without showing the memory type encoding or valid bit. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/x86/lib/cmd_mtrr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/lib/cmd_mtrr.c b/arch/x86/lib/cmd_mtrr.c
index 7e0506b..f632f49 100644
--- a/arch/x86/lib/cmd_mtrr.c
+++ b/arch/x86/lib/cmd_mtrr.c
@@ -37,7 +37,8 @@ static int do_mtrr_list(void)
valid = mask & MTRR_PHYS_MASK_VALID;
type = mtrr_type_name[base & MTRR_BASE_TYPE_MASK];
printf("%d %-5s %-12s %016llx %016llx %016llx\n", i,
- valid ? "Y" : "N", type, base, mask, size);
+ valid ? "Y" : "N", type, base & ~MTRR_BASE_TYPE_MASK,
+ mask & ~MTRR_PHYS_MASK_VALID, size);
}
return 0;