]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: cmd_mtrr: Improve MTRR list information
authorBin Meng <bmeng.cn@gmail.com>
Mon, 6 Jul 2015 08:31:32 +0000 (16:31 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:25 +0000 (13:29 +0200)
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>
arch/x86/lib/cmd_mtrr.c

index 7e0506b75d217da34d40ab2a84613fb5d5e02d9a..f632f495ede35c11cea8bb90ce056588d66524d4 100644 (file)
@@ -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;