|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] [XEN][POWERPC] use symbol to detect processor
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 965d3e42dddaf5971001f7d172d192f925537644
# Parent 6af601c5ebe192a0de72430cdd94da5ba46ff287
[XEN][POWERPC] use symbol to detect processor version
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/arch/powerpc/powerpc64/ppc970_scom.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 6af601c5ebe1 -r 965d3e42ddda xen/arch/powerpc/powerpc64/ppc970_scom.c
--- a/xen/arch/powerpc/powerpc64/ppc970_scom.c Fri Dec 15 08:36:03 2006 -0500
+++ 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-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [xenppc-unstable] [XEN][POWERPC] use symbol to detect processor version,
Xen patchbot-xenppc-unstable <=
|
|
|
|
|