ia64/xen-unstable

changeset 13920:60515808f591

[XEN][POWERPC] use symbol to detect processor version
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Dec 17 12:36:31 2006 -0500 (2006-12-17)
parents 8268807adbed
children d1f053ff43d2
files xen/arch/powerpc/powerpc64/ppc970_scom.c
line diff
     1.1 --- a/xen/arch/powerpc/powerpc64/ppc970_scom.c	Wed Jan 03 10:54:49 2007 +0000
     1.2 +++ b/xen/arch/powerpc/powerpc64/ppc970_scom.c	Sun Dec 17 12:36:31 2006 -0500
     1.3 @@ -158,7 +158,7 @@ void cpu_scom_init(void)
     1.4  {
     1.5  #ifdef CONFIG_SCOM
     1.6      ulong val;
     1.7 -    if (PVR_REV(mfpvr()) == 0x0300) {
     1.8 +    if (PVR_REV(mfpvr()) == PV_970FX) {
     1.9          /* these address are only good for 970FX */
    1.10          console_start_sync();
    1.11          if (!cpu_scom_read(SCOM_PTSR, &val))
    1.12 @@ -174,7 +174,7 @@ void cpu_scom_AMCR(void)
    1.13  #ifdef CONFIG_SCOM
    1.14      ulong val;
    1.15  
    1.16 -    if (PVR_REV(mfpvr()) == 0x0300) {
    1.17 +    if (PVR_REV(mfpvr()) == PV_970FX) {
    1.18          /* these address are only good for 970FX */
    1.19          cpu_scom_read(SCOM_AMC_REG, &val);
    1.20          printk("SCOM AMCR: 0x%016lx\n", val);