# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1190390354 -3600
# Node ID e02a65038f2c45d851e8fc9614cd57ea4c477987
# Parent 2f94fc96f99c2de54442fba488e11c7d2d40d73a
Move generate_acpi_checksum() from ia64 code to common.
Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
xen-unstable changeset: 15653:d9c3836e068409ddb7620f7bd5b4c09f16a55f86
xen-unstable date: Mon Jul 30 10:59:27 2007 +0100
---
xen/arch/ia64/xen/dom_fw.c | 11 -----------
xen/drivers/acpi/tables.c | 11 +++++++++++
xen/include/xen/acpi.h | 1 +
3 files changed, 12 insertions(+), 11 deletions(-)
diff -r 2f94fc96f99c -r e02a65038f2c xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c Fri Sep 21 16:58:59 2007 +0100
+++ b/xen/arch/ia64/xen/dom_fw.c Fri Sep 21 16:59:14 2007 +0100
@@ -256,17 +256,6 @@ acpi_patch_plat_int_src (
plintsrc->type = -1;
}
return 0;
-}
-
-static u8
-generate_acpi_checksum(void *tbl, unsigned long len)
-{
- u8 *ptr, sum = 0;
-
- for (ptr = tbl; len > 0 ; len--, ptr++)
- sum += *ptr;
-
- return 0 - sum;
}
static int
diff -r 2f94fc96f99c -r e02a65038f2c xen/drivers/acpi/tables.c
--- a/xen/drivers/acpi/tables.c Fri Sep 21 16:58:59 2007 +0100
+++ b/xen/drivers/acpi/tables.c Fri Sep 21 16:59:14 2007 +0100
@@ -226,6 +226,17 @@ void acpi_table_print_madt_entry(acpi_ta
}
}
+uint8_t
+generate_acpi_checksum(void *tbl, unsigned long len)
+{
+ uint8_t *ptr, sum = 0;
+
+ for (ptr = tbl; len > 0 ; len--, ptr++)
+ sum += *ptr;
+
+ return 0 - sum;
+}
+
static int
acpi_table_compute_checksum(void *table_pointer, unsigned long length)
{
diff -r 2f94fc96f99c -r e02a65038f2c xen/include/xen/acpi.h
--- a/xen/include/xen/acpi.h Fri Sep 21 16:58:59 2007 +0100
+++ b/xen/include/xen/acpi.h Fri Sep 21 16:59:14 2007 +0100
@@ -391,6 +391,7 @@ void acpi_table_print (struct acpi_table
void acpi_table_print (struct acpi_table_header *header, unsigned long
phys_addr);
void acpi_table_print_madt_entry (acpi_table_entry_header *madt);
void acpi_table_print_srat_entry (acpi_table_entry_header *srat);
+uint8_t generate_acpi_checksum(void *tbl, unsigned long len);
/* the following four functions are architecture-dependent */
void acpi_numa_slit_init (struct acpi_table_slit *slit);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|