Patchwork [qemu,4/5] hw/acpi: export acpi_checksum()

login
register
mail settings
Submitter Laszlo Ersek
Date April 8, 2013, 1:13 p.m.
Message ID <1365426803-1781-5-git-send-email-lersek@redhat.com>
Download mbox | patch
Permalink /patch/234774/
State New
Headers show

Comments

Laszlo Ersek - April 8, 2013, 1:13 p.m.
Again, this enables reuse when preparing per-table fw_cfg blobs later.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
 hw/acpi.h |    2 ++
 hw/acpi.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/acpi.h b/hw/acpi.h
index e3e17e9..2c89e59 100644
--- a/hw/acpi.h
+++ b/hw/acpi.h
@@ -167,4 +167,6 @@  typedef struct acpi_table_std_header {
 } QEMU_PACKED AcpiTableStdHdr;
 
 extern const AcpiTableStdHdr acpi_dfl_hdr;
+
+int acpi_checksum(const uint8_t *data, int len);
 #endif /* !QEMU_HW_ACPI_H */
diff --git a/hw/acpi.c b/hw/acpi.c
index f24be53..07634e1 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -69,7 +69,7 @@  static void acpi_register_config(void)
 
 machine_init(acpi_register_config);
 
-static int acpi_checksum(const uint8_t *data, int len)
+int acpi_checksum(const uint8_t *data, int len)
 {
     int sum, i;
     sum = 0;