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

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



# 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


 


Rackspace

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