mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
6a32489782
The ACPI tables are special in that they are passed to EFI as a separate piece, independent of other tables. Also they can be spread over two areas of memory, e.g. with QEMU we end up with tables kept in high memory as well. Add new global_data fields to hold this information and update the bdinfo command to show the table areas. Move the rom_table_end variable into the loop that uses it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
33 lines
996 B
C
33 lines
996 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* x86-specific information for the 'bd' command
|
|
*
|
|
* Copyright 2021 Google LLC
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <efi.h>
|
|
#include <init.h>
|
|
#include <asm/cpu.h>
|
|
#include <asm/efi.h>
|
|
#include <asm/global_data.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
void arch_print_bdinfo(void)
|
|
{
|
|
bdinfo_print_num_l("prev table", gd->arch.table);
|
|
bdinfo_print_num_l("clock_rate", gd->arch.clock_rate);
|
|
bdinfo_print_num_l("tsc_base", gd->arch.tsc_base);
|
|
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());
|
|
bdinfo_print_num_l("table start", gd->arch.table_start);
|
|
bdinfo_print_num_l("table end", gd->arch.table_end);
|
|
bdinfo_print_num_l(" high start", gd->arch.table_start_high);
|
|
bdinfo_print_num_l(" high end", gd->arch.table_end_high);
|
|
|
|
if (IS_ENABLED(CONFIG_EFI_STUB))
|
|
efi_show_bdinfo();
|
|
}
|