NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-macppc/50018: macppc 7.0_RC1 ofwboot fails to load kernelon OF2 machine



The following reply was made to PR port-macppc/50018; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-macppc/50018: macppc 7.0_RC1 ofwboot fails to load kernelon
	 OF2 machine
Date: Thu, 2 Jul 2015 02:40:42 +0900

 >  Reverting Locore.c rev 1.25 (601 support) fixes this problem.
 >   http://mail-index.netbsd.org/source-changes/2014/02/26/msg052077.html
 >   http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/macppc/stand/ofwboot/Locore.c#rev1.25
 >  
 >  Something wrong BAT mapping in 603 case?
 
 Looks a careless bug in the rev.
 
 The following diff makes ofwboot work again.
 
 Index: Locore.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/macppc/stand/ofwboot/Locore.c,v
 retrieving revision 1.25
 diff -u -p -d -r1.25 Locore.c
 --- Locore.c	26 Feb 2014 21:42:40 -0000	1.25
 +++ Locore.c	1 Jul 2015 17:34:46 -0000
 @@ -75,6 +75,7 @@ __asm(
  "       cmpi    0,1,%r0,0x02  	\n" /* 601 CPU = 0x0001 */
  "       blt     1f		\n" /* skip over non-601 BAT setup */
  	/*non PPC 601 BATs*/
 +"	li	%r0,0		\n"
  "	mtibatu	0,%r0		\n"
  "	mtibatu	1,%r0		\n"
  "	mtibatu	2,%r0		\n"
 @@ -93,7 +94,8 @@ __asm(
  "	b 2f			\n"
  
  	/* PPC 601 BATs*/
 -"1:	mtibatu	0,%r0		\n"
 +"1:	li	%r0,0		\n"
 +"	mtibatu	0,%r0		\n"
  "      	mtibatu 1,%r0           \n"
  "      	mtibatu 2,%r0           \n"
  "      	mtibatu 3,%r0           \n"
 
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index