Skip to contentSkip to conversation

ppc32: Compile classic PPC specific ASM only on CONFIG_6xx

PATCH New Tom Rini 1 participant 1 message Dec 15, 2004

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 ppc32: Compile classic PPC specific ASM only on CONFIG_6xx

[ I hope this can go in prior to 2.6.10 ]

Newer binutils (2.15) when they know they aren't assembling for a classic target (say e500 instead of 750) disallow certain opcodes, causing the compile to fail.

---
 util.S |    2 ++
 1 files changed, 2 insertions(+)

---

arch/ppc/boot/common/util.S +2 -0
Index: 2.6.10-rc3/arch/ppc/boot/common/util.S
===================================================================
@@ -27,6 +27,7 @@
 
 	.text
 
+#ifdef CONFIG_6xx
 	.globl	disable_6xx_mmu
 disable_6xx_mmu:
 	/* Establish default MSR value, exception prefix 0xFFF.
@@ -94,6 +95,7 @@
 	sync
 	isync
 	blr
+#endif
 
 	.globl	_setup_L2CR
 _setup_L2CR:
Signature · 2 lines
Tom Rini
http://gate.crashing.org/~trini/