Re: 2.4.23+BK: PPC compile error

From: Tom Rini
Date: Mon Dec 08 2003 - 10:31:38 EST


On Mon, Dec 08, 2003 at 12:02:44PM +0200, Meelis Roos wrote:

> gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/mroos/compile/linux-2.4/include -I/home/mroos/compile/linux-2.4/arch/ppc -c -o cpu_setup_6xx.o cpu_setup_6xx.S
> cpu_setup_6xx.S: Assembler messages:
> cpu_setup_6xx.S:164: Error: Unrecognized opcode: `andi'

[ donning brown paper bag ]
Marcelo, please apply the following:

PPC32: Fix a thinko in arch/ppc/kernel/cpu_setup_6xx.S

--- 1.6/arch/ppc/kernel/cpu_setup_6xx.S Wed Dec 3 08:48:47 2003
+++ edited/arch/ppc/kernel/cpu_setup_6xx.S Mon Dec 8 08:26:37 2003
@@ -161,7 +161,7 @@
rlwinm r3,r10,16,16,31
cmplwi r3,0x000c
bne 1f /* Not a 7400. */
- andi r3,r10,0x0f0f
+ andi. r3,r10,0x0f0f
cmpwi 0,r3,0x0200
bgt 1f /* Rev >= 2.1 */
li r3,HID0_SGE /* 7400 rev < 2.1, clear SGE. */

--
Tom Rini
http://gate.crashing.org/~trini/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/