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

[Xen-changelog] [xen-unstable] [XEN][POWERPC] use symbol to detect proce

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN][POWERPC] use symbol to detect processor version
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Feb 2007 15:00:15 -0800
Delivery-date: Wed, 14 Feb 2007 15:00:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Date 1166376991 18000
# Node ID 60515808f591a211e3abd536b5b026e500ad3292
# Parent  8268807adbed6869c0174ee48478521303304996
[XEN][POWERPC] use symbol to detect processor version
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/powerpc64/ppc970_scom.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 8268807adbed -r 60515808f591 xen/arch/powerpc/powerpc64/ppc970_scom.c
--- a/xen/arch/powerpc/powerpc64/ppc970_scom.c  Wed Jan 03 10:54:49 2007 +0000
+++ b/xen/arch/powerpc/powerpc64/ppc970_scom.c  Sun Dec 17 12:36:31 2006 -0500
@@ -158,7 +158,7 @@ void cpu_scom_init(void)
 {
 #ifdef CONFIG_SCOM
     ulong val;
-    if (PVR_REV(mfpvr()) == 0x0300) {
+    if (PVR_REV(mfpvr()) == PV_970FX) {
         /* these address are only good for 970FX */
         console_start_sync();
         if (!cpu_scom_read(SCOM_PTSR, &val))
@@ -174,7 +174,7 @@ void cpu_scom_AMCR(void)
 #ifdef CONFIG_SCOM
     ulong val;
 
-    if (PVR_REV(mfpvr()) == 0x0300) {
+    if (PVR_REV(mfpvr()) == PV_970FX) {
         /* these address are only good for 970FX */
         cpu_scom_read(SCOM_AMC_REG, &val);
         printk("SCOM AMCR: 0x%016lx\n", val);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN][POWERPC] use symbol to detect processor version, Xen patchbot-unstable <=