summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorJon Loeliger <jdl@jdl.com>2006-06-17 17:49:42 -0500
committerPaul Mackerras <paulus@samba.org>2006-06-21 15:01:27 +1000
commit2198c070498850c16d65c09bc587e3f5042126ef (patch)
tree4bc2cb0f7defd3f8e941195ce6de13d4d25ab2b0 /arch/powerpc
parent7932f0b82ff1db35a5ed8d5825d51cafe15fa6db (diff)
downloadop-kernel-dev-2198c070498850c16d65c09bc587e3f5042126ef.zip
op-kernel-dev-2198c070498850c16d65c09bc587e3f5042126ef.tar.gz
[POWERPC] Guard L3CR references with CPU_FTR_L3CR.
Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/cpu_setup_6xx.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_6xx.S b/arch/powerpc/kernel/cpu_setup_6xx.S
index 55ed771..365381f 100644
--- a/arch/powerpc/kernel/cpu_setup_6xx.S
+++ b/arch/powerpc/kernel/cpu_setup_6xx.S
@@ -210,9 +210,11 @@ setup_745x_specifics:
* the firmware. If any, we disable NAP capability as
* it's known to be bogus on rev 2.1 and earlier
*/
+BEGIN_FTR_SECTION
mfspr r11,SPRN_L3CR
andis. r11,r11,L3CR_L3E@h
beq 1f
+END_FTR_SECTION_IFSET(CPU_FTR_L3CR)
lwz r6,CPU_SPEC_FEATURES(r5)
andi. r0,r6,CPU_FTR_L3_DISABLE_NAP
beq 1f
OpenPOWER on IntegriCloud