ia64/xen-unstable

changeset 13989:2023386e38c4

hvm: Fix acpi processor id in MADT LAPIC entries.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Feb 15 19:03:09 2007 +0000 (2007-02-15)
parents a42c58791d8a
children cd03d7c23aa7
files tools/firmware/hvmloader/acpi/build.c
line diff
     1.1 --- a/tools/firmware/hvmloader/acpi/build.c	Thu Feb 15 18:05:05 2007 +0000
     1.2 +++ b/tools/firmware/hvmloader/acpi/build.c	Thu Feb 15 19:03:09 2007 +0000
     1.3 @@ -110,7 +110,9 @@ int construct_madt(struct acpi_20_madt *
     1.4          memset(lapic, 0, sizeof(*lapic));
     1.5          lapic->type    = ACPI_PROCESSOR_LOCAL_APIC;
     1.6          lapic->length  = sizeof(*lapic);
     1.7 -        lapic->acpi_processor_id = lapic->apic_id = LAPIC_ID(i);
     1.8 +        /* Processor ID must match processor-object IDs in the DSDT. */
     1.9 +        lapic->acpi_processor_id = i;
    1.10 +        lapic->apic_id = LAPIC_ID(i);
    1.11          lapic->flags   = ACPI_LOCAL_APIC_ENABLED;
    1.12          offset += sizeof(*lapic);
    1.13          lapic++;