summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-16 06:38:42 +0300
committerBin Meng <bmeng@tinylab.org>2023-07-17 12:08:44 +0300
commit633af11dd65cde0c198f8548585d6610cf4d0655 (patch)
treefc1e9aa98ae0671699077097521f844a736468d8 /arch/x86/lib
parentde94db813272393d136f21b2cb832d8933d2cfb2 (diff)
downloadu-boot-633af11dd65cde0c198f8548585d6610cf4d0655.tar.xz
x86: Show the CPU physical address size with bdinfo
This is useful information so show it with the bdinfo command. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/bdinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/lib/bdinfo.c b/arch/x86/lib/bdinfo.c
index 15390070fe..a20d095441 100644
--- a/arch/x86/lib/bdinfo.c
+++ b/arch/x86/lib/bdinfo.c
@@ -22,6 +22,7 @@ void arch_print_bdinfo(void)
bdinfo_print_num_l("vendor", gd->arch.x86_vendor);
bdinfo_print_str(" name", cpu_vendor_name(gd->arch.x86_vendor));
bdinfo_print_num_l("model", gd->arch.x86_model);
+ bdinfo_print_num_l("phys_addr in bits", cpu_phys_address_size());
if (IS_ENABLED(CONFIG_EFI_STUB))
efi_show_bdinfo();