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

[Xen-devel] [Patch] Fix broken ACPI in linux-2.6-xen and linux-2.6-merge


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Stephen C. Tweedie" <sct@xxxxxxxxxx>
  • Date: Mon, 28 Nov 2005 14:55:14 -0500
  • Delivery-date: Mon, 28 Nov 2005 19:55:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi all,

I've been struggling with unbootable Xen kernels when using the 2.6.14
subarch versions of Xen, and have traced it down to non-functioning
ACPI.  This seems to be because of config changes with the Xen subarch
move; the old #define CONFIG_XEN_X86 has become CONFIG_X86_XEN in the
new trees, but drivers/acpi/table.c was still using the old symbol name.
Simple patch attached, and my linux-2.6-xen builds now boot again.

--Stephen

# HG changeset patch
# User sct@xxxxxxxxxxxxxxxxxxxxx
# Node ID 5753c8372d613848cf8bba7d970cbf051dd16dad
# Parent  eacc66aa98c1e47e50b64309a9c7bfb08a221dab
Fix acpi use of CONFIG_*X86* to match the config defines used with Xen
subarch.

diff -r eacc66aa98c1 -r 5753c8372d61 drivers/acpi/tables.c
--- a/drivers/acpi/tables.c     Mon Nov 28 14:28:32 2005 -0500
+++ b/drivers/acpi/tables.c     Mon Nov 28 14:50:35 2005 -0500
@@ -572,7 +572,7 @@
  * 
  * result: sdt_entry[] is initialized
  */
-#if defined(CONFIG_XEN_X86) || defined(CONFIG_XEN_X86_64)
+#if defined(CONFIG_X86_XEN) || defined(CONFIG_X86_64_XEN)
 #define acpi_rsdp_phys_to_va(rsdp_phys) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) + \
                                           (rsdp_phys & ~PAGE_MASK))
 #else



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


 


Rackspace

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