linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.23+BK: PPC compile error
@ 2003-12-08 10:02 Meelis Roos
  2003-12-08 15:29 ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Meelis Roos @ 2003-12-08 10:02 UTC (permalink / raw)
  To: linux-kernel

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'

32-bit PPC, Debian unstable (up to date). Compiling for PReP.

-- 
Meelis Roos (mroos@linux.ee)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.4.23+BK: PPC compile error
  2003-12-08 10:02 2.4.23+BK: PPC compile error Meelis Roos
@ 2003-12-08 15:29 ` Tom Rini
  2003-12-10 13:22   ` Meelis Roos
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2003-12-08 15:29 UTC (permalink / raw)
  To: Meelis Roos, Marcelo Tosatti; +Cc: linux-kernel

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.4.23+BK: PPC compile error
  2003-12-08 15:29 ` Tom Rini
@ 2003-12-10 13:22   ` Meelis Roos
  0 siblings, 0 replies; 3+ messages in thread
From: Meelis Roos @ 2003-12-10 13:22 UTC (permalink / raw)
  To: Tom Rini; +Cc: linux-kernel

> 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. */

This fix works fine, thanks!

-- 
Meelis Roos (mroos@linux.ee)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-10 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-08 10:02 2.4.23+BK: PPC compile error Meelis Roos
2003-12-08 15:29 ` Tom Rini
2003-12-10 13:22   ` Meelis Roos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).