mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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>
This commit is contained in:
parent
92587b364b
commit
df07d91956
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue