Subject: Nasty bug in ofwreal.S
To: None <port-powerpc@netbsd.org>
From: =?ISO-8859-1?Q?Jorge_Acereda_Maci=E1?= <jacereda@gmail.com>
List: port-powerpc
Date: 09/21/2006 20:08:25
Hi,

Sorry if this appears twice. I sent it yesterday, but haven't seen it on 
the list.

See you,
   Jorge Acereda


Index: ofwreal.S
===================================================================
RCS file: /cvsroot/src/sys/arch/powerpc/powerpc/ofwreal.S,v
retrieving revision 1.7
diff -u -u -r1.7 ofwreal.S
--- ofwreal.S	11 Dec 2005 12:18:46 -0000	1.7
+++ ofwreal.S	20 Sep 2006 22:10:59 -0000
@@ -259,7 +259,7 @@

  	lwz	%r4,0(%r3)
  	mtibatl	0,%r4			/* restore BATs */
-	lwz	%r4,%r4(%r3)
+	lwz	%r4,4(%r3)
  	mtibatu	0,%r4
  	lwz	%r4,8(%r3)
  	mtibatl	1,%r4