@@ -127,7 +127,7 @@ static void ovmf_acpi_build_tables(void)
.dsdt_15cpu_len = 0
};
- acpi_build_tables(&config, ACPI_PHYSICAL_ADDRESS);
+ hvmloader_acpi_build_tables(&config, ACPI_PHYSICAL_ADDRESS);
}
static void ovmf_create_smbios_tables(void)
@@ -181,7 +181,7 @@ static void rombios_acpi_build_tables(void)
.dsdt_15cpu_len = dsdt_15cpu_len,
};
- acpi_build_tables(&config, ACPI_PHYSICAL_ADDRESS);
+ hvmloader_acpi_build_tables(&config, ACPI_PHYSICAL_ADDRESS);
}
static void rombios_create_mp_tables(void)
@@ -97,7 +97,7 @@ static void seabios_acpi_build_tables(void)
.dsdt_15cpu_len = 0,
};
- acpi_build_tables(&config, rsdp);
+ hvmloader_acpi_build_tables(&config, rsdp);
add_table(rsdp);
}
@@ -21,6 +21,7 @@
#include "config.h"
#include "hypercall.h"
#include "ctype.h"
+#include "acpi/acpi2_0.h"
#include <stdint.h>
#include <xen/xen.h>
#include <xen/memory.h>
@@ -856,6 +857,12 @@ int hpet_exists(unsigned long hpet_base)
return ((hpet_id >> 16) == 0x8086);
}
+void hvmloader_acpi_build_tables(struct acpi_config *config,
+ unsigned int physical)
+{
+ acpi_build_tables(config, physical);
+}
+
/*
* Local variables:
* mode: C
@@ -276,6 +276,10 @@ extern struct e820map memory_map;
bool check_overlap(uint64_t start, uint64_t size,
uint64_t reserved_start, uint64_t reserved_size);
+struct acpi_config;
+void hvmloader_acpi_build_tables(struct acpi_config *config,
+ unsigned int physical);
+
#endif /* __HVMLOADER_UTIL_H__ */
/*