WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix the address calculation of acpi enabl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix the address calculation of acpi enable reg according to ACPI spec.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 May 2008 02:30:12 -0700
Delivery-date: Mon, 05 May 2008 02:30:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=