|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Fix the address calculation of acpi enabl
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1209979018 -3600
# Node ID ccbbe6fe5827b3a262b24f6dd7140de8ae3ec456
# Parent 0eb471aa24dcaf14f309a985f44c075092fd3c8b
Fix the address calculation of acpi enable reg according to ACPI spec.
Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
---
xen/arch/x86/acpi/boot.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff -r 0eb471aa24dc -r ccbbe6fe5827 xen/arch/x86/acpi/boot.c
--- a/xen/arch/x86/acpi/boot.c Mon May 05 10:16:06 2008 +0100
+++ b/xen/arch/x86/acpi/boot.c Mon May 05 10:16:58 2008 +0100
@@ -475,8 +475,12 @@ acpi_fadt_parse_reg(struct acpi_table_fa
sizeof(acpi_gbl_xpm1a_enable));
memcpy(&acpi_gbl_xpm1b_enable, &fadt->xpm1b_event_block,
sizeof(acpi_gbl_xpm1b_enable));
- acpi_gbl_xpm1a_enable.address += 2;
- acpi_gbl_xpm1b_enable.address += 2;
+
+ acpi_gbl_xpm1a_enable.address +=
+ acpi_gbl_FADT.pm1_event_length / 2;
+ if ( acpi_gbl_xpm1b_enable.address )
+ acpi_gbl_xpm1b_enable.address +=
+ acpi_gbl_FADT.pm1_event_length / 2;
}
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Fix the address calculation of acpi enable reg according to ACPI spec.,
Xen patchbot-unstable <=
|
|
|
|
|