]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Show the CPU physical address size with bdinfo
authorSimon Glass <sjg@chromium.org>
Sun, 16 Jul 2023 03:38:42 +0000 (21:38 -0600)
committerBin Meng <bmeng@tinylab.org>
Mon, 17 Jul 2023 09:08:44 +0000 (17:08 +0800)
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>
arch/x86/lib/bdinfo.c

index 15390070fe85765f3bc93f0f9f2f11ca3d09e8ce..a20d0954416ad3f28d880627bf69e7a5c59e22a7 100644 (file)
@@ -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();