@@ -3,6 +3,7 @@ config X86_64
config X86
def_bool y
+ select ACPI_LEGACY_TABLES_LOOKUP
select COMPAT
select HAS_ACPI
select HAS_CPUFREQ
@@ -2,3 +2,6 @@
# Select HAS_ACPI if ACPI is supported
config HAS_ACPI
bool
+
+config ACPI_LEGACY_TABLES_LOOKUP
+ bool
@@ -38,6 +38,7 @@
#include <xen/domain_page.h>
#include <xen/efi.h>
#include <xen/vmap.h>
+#include <xen/kconfig.h>
#define _COMPONENT ACPI_OS_SERVICES
ACPI_MODULE_NAME("osl")
@@ -75,12 +76,14 @@ acpi_physical_address __init acpi_os_get_root_pointer(void)
"System description tables not found\n");
return 0;
}
- } else {
+ } else if (IS_ENABLED(CONFIG_ACPI_LEGACY_TABLES_LOOKUP)) {
acpi_physical_address pa = 0;
acpi_find_root_pointer(&pa);
return pa;
}
+
+ return 0;
}
void __iomem *