Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/arch/macppc/stand/ofwboot Pull up following revision(...



details:   https://anonhg.NetBSD.org/src/rev/e07cf3773e71
branches:  netbsd-7
changeset: 799504:e07cf3773e71
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jul 30 10:22:12 2015 +0000

description:
Pull up following revision(s) (requested by tsutsui in ticket #893):
        sys/arch/macppc/stand/ofwboot/Locore.c: revision 1.26
Don't set garbages into BAT registers, which was broken in rev 1.25.
Should fix PR port-macppc/50018 (though there is no response for 3 weeks),
and should be pulled up to netbsd-7.

diffstat:

 sys/arch/macppc/stand/ofwboot/Locore.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 2b83cfb935bc -r e07cf3773e71 sys/arch/macppc/stand/ofwboot/Locore.c
--- a/sys/arch/macppc/stand/ofwboot/Locore.c    Thu Jul 30 09:45:24 2015 +0000
+++ b/sys/arch/macppc/stand/ofwboot/Locore.c    Thu Jul 30 10:22:12 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: Locore.c,v 1.25 2014/02/26 21:42:40 macallan Exp $     */
+/*     $NetBSD: Locore.c,v 1.25.4.1 2015/07/30 10:22:12 martin Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -75,6 +75,7 @@
 "       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 @@
 "      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"



Home | Main Index | Thread Index | Old Index