[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] hvmloader: don't clear acpi_info after filling in some fields



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1315905723 -3600
# Node ID ad958e87db79549165661d50b9b77526f22b0f03
# Parent  0312575dc35e4294eb50e365b2c10078914daca8
hvmloader: don't clear acpi_info after filling in some fields

In particular the madt_lapic0_addr and madt_csum_addr fields are
filled in while building the tables.

This fixes a bluescreen on shutdown with certain versions of Windows.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Reported-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Tested-and-acked-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---


diff -r 0312575dc35e -r ad958e87db79 tools/firmware/hvmloader/acpi/build.c
--- a/tools/firmware/hvmloader/acpi/build.c     Thu Sep 08 15:13:06 2011 +0100
+++ b/tools/firmware/hvmloader/acpi/build.c     Tue Sep 13 10:22:03 2011 +0100
@@ -277,6 +277,8 @@
     unsigned long        secondary_tables[16];
     int                  nr_secondaries, i;
 
+    memset(acpi_info, 0, sizeof(*acpi_info));
+
     /*
      * Fill in high-memory data structures, starting at @buf.
      */
@@ -375,7 +377,6 @@
                  offsetof(struct acpi_20_rsdp, extended_checksum),
                  sizeof(struct acpi_20_rsdp));
 
-    memset(acpi_info, 0, sizeof(*acpi_info));
     acpi_info->com1_present = uart_exists(0x3f8);
     acpi_info->com2_present = uart_exists(0x2f8);
     acpi_info->lpt1_present = lpt_exists(0x378);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.