ia64/xen-unstable

changeset 17577:ccbbe6fe5827

Fix the address calculation of acpi enable reg according to ACPI spec.

Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon May 05 10:16:58 2008 +0100 (2008-05-05)
parents 0eb471aa24dc
children 94c6501c4ffe
files xen/arch/x86/acpi/boot.c
line diff
     1.1 --- a/xen/arch/x86/acpi/boot.c	Mon May 05 10:16:06 2008 +0100
     1.2 +++ b/xen/arch/x86/acpi/boot.c	Mon May 05 10:16:58 2008 +0100
     1.3 @@ -475,8 +475,12 @@ acpi_fadt_parse_reg(struct acpi_table_fa
     1.4  		       sizeof(acpi_gbl_xpm1a_enable));
     1.5  		memcpy(&acpi_gbl_xpm1b_enable, &fadt->xpm1b_event_block,
     1.6  		       sizeof(acpi_gbl_xpm1b_enable));
     1.7 -		acpi_gbl_xpm1a_enable.address += 2;
     1.8 -		acpi_gbl_xpm1b_enable.address += 2;
     1.9 +
    1.10 +		acpi_gbl_xpm1a_enable.address +=
    1.11 +			acpi_gbl_FADT.pm1_event_length / 2;
    1.12 +		if ( acpi_gbl_xpm1b_enable.address )
    1.13 +			acpi_gbl_xpm1b_enable.address +=
    1.14 +				acpi_gbl_FADT.pm1_event_length / 2;
    1.15  	}
    1.16  }
    1.17