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] x86-64: don't compile some unused machine check code

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86-64: don't compile some unused machine check code
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Mon, 13 Nov 2006 13:44:59 +0100
Delivery-date: Mon, 13 Nov 2006 04:44:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: 2006-10-30/xen/arch/x86/cpu/mcheck/Makefile
===================================================================
--- 2006-10-30.orig/xen/arch/x86/cpu/mcheck/Makefile    2006-11-09 
14:57:55.000000000 +0100
+++ 2006-10-30/xen/arch/x86/cpu/mcheck/Makefile 2006-11-09 14:58:18.000000000 
+0100
@@ -2,6 +2,6 @@ obj-y += k7.o
 obj-y += mce.o
 obj-y += non-fatal.o
 obj-y += p4.o
-obj-y += p5.o
-obj-y += p6.o
-obj-y += winchip.o
+obj-$(x86_32) += p5.o
+obj-$(x86_32) += p6.o
+obj-$(x86_32) += winchip.o
Index: 2006-10-30/xen/arch/x86/cpu/mcheck/mce.c
===================================================================
--- 2006-10-30.orig/xen/arch/x86/cpu/mcheck/mce.c       2006-11-09 
14:57:55.000000000 +0100
+++ 2006-10-30/xen/arch/x86/cpu/mcheck/mce.c    2006-11-09 13:11:33.000000000 
+0100
@@ -39,18 +39,22 @@ void mcheck_init(struct cpuinfo_x86 *c)
                        break;
 
                case X86_VENDOR_INTEL:
+#ifndef CONFIG_X86_64
                        if (c->x86==5)
                                intel_p5_mcheck_init(c);
                        if (c->x86==6)
                                intel_p6_mcheck_init(c);
+#endif
                        if (c->x86==15)
                                intel_p4_mcheck_init(c);
                        break;
 
+#ifndef CONFIG_X86_64
                case X86_VENDOR_CENTAUR:
                        if (c->x86==5)
                                winchip_mcheck_init(c);
                        break;
+#endif
 
                default:
                        break;


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86-64: don't compile some unused machine check code, Jan Beulich <=