]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc32: Compile classic PPC specific ASM only on CONFIG_6xx
authorTom Rini <trini@kernel.crashing.org>
Wed, 15 Dec 2004 03:12:50 +0000 (19:12 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 15 Dec 2004 03:12:50 +0000 (19:12 -0800)
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.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/boot/common/util.S

index 7c4fb8f57953146459030571bb159d37e4d30885..d0161ac4cc567165c61df80cb1148e5083d4cf47 100644 (file)
@@ -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 @@ disable_6xx_l1cache:
        sync
        isync
        blr
+#endif
 
        .globl  _setup_L2CR
 _setup_L2CR: