From 45410da714a1857c9e06573159877cff98fa4129 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Tue, 30 Jan 2018 05:01:16 -0800 Subject: x86: acpi: Use an API to get the ACPI RSDP table address At present the acpi_rsdp_addr variable is directly referenced in setup_zimage(). This changes to use an API for better encapsulation and extension. Signed-off-by: Bin Meng Reviewed-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/x86/include') diff --git a/arch/x86/include/asm/acpi_table.h b/arch/x86/include/asm/acpi_table.h index 80038504dd..d5d77cc011 100644 --- a/arch/x86/include/asm/acpi_table.h +++ b/arch/x86/include/asm/acpi_table.h @@ -329,6 +329,15 @@ void acpi_create_gnvs(struct acpi_global_nvs *gnvs); void enter_acpi_mode(int pm1_cnt); ulong write_acpi_tables(ulong start); +/** + * acpi_get_rsdp_addr() - get ACPI RSDP table address + * + * This routine returns the ACPI RSDP table address in the system memory. + * + * @return: ACPI RSDP table address + */ +ulong acpi_get_rsdp_addr(void); + /** * acpi_find_fadt() - find ACPI FADT table in the sytem memory * -- cgit