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-devel

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

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Patch] Fix broken ACPI in linux-2.6-xen and linux-2.6-merge
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>