@@ -29,6 +29,12 @@
#include "hw/acpi/bios-linker-loader.h"
#include "qemu/module.h"
+void acpi_add_table(GArray *table_offsets, GArray *table_data)
+{
+ uint32_t offset = cpu_to_le32(table_data->len);
+ g_array_append_val(table_offsets, offset);
+}
+
GArray *build_alloc_array(void)
{
return g_array_new(false, true /* clear */, 1);
@@ -312,12 +312,6 @@ static void acpi_align_size(GArray *blob, unsigned align)
g_array_set_size(blob, ROUND_UP(acpi_data_len(blob), align));
}
-static inline void acpi_add_table(GArray *table_offsets, GArray *table_data)
-{
- uint32_t offset = cpu_to_le32(table_data->len);
- g_array_append_val(table_offsets, offset);
-}
-
/* FACS */
static void
build_facs(GArray *table_data, GArray *linker, PcGuestInfo *guest_info)
@@ -211,5 +211,6 @@ void build_package(GArray *package, uint8_t op);
void build_append_value(GArray *table, uint64_t value, int size);
void build_append_int(GArray *table, uint64_t value);
void build_extop_package(GArray *package, uint8_t op);
+void acpi_add_table(GArray *table_offsets, GArray *table_data);
#endif
Signed-off-by: Igor Mammedov <imammedo@redhat.com> --- hw/acpi/acpi-build-utils.c | 6 ++++++ hw/i386/acpi-build.c | 6 ------ include/hw/acpi/acpi-build-utils.h | 1 + 3 files changed, 7 insertions(+), 6 deletions(-)