Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc don't zero the MSR when building with...



details:   https://anonhg.NetBSD.org/src/rev/082f81b8dad1
branches:  trunk
changeset: 455248:082f81b8dad1
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Oct 11 21:56:55 2019 +0000

description:
don't zero the MSR when building with options FIRMWORKSBUGS
with this a FIRMWORKSBUGS kernel boots on my TiBook
first step to address PR2231

diffstat:

 sys/arch/macppc/macppc/locore.S |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 423ce0b42012 -r 082f81b8dad1 sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Fri Oct 11 20:18:20 2019 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Fri Oct 11 21:56:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.73 2018/07/15 05:16:43 maxv Exp $ */
+/*     $NetBSD: locore.S,v 1.74 2019/10/11 21:56:55 macallan Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -87,7 +87,9 @@
        bl      _C_LABEL(cpu_model_init)        /* init oeacpufeat */
 
        li      0,0
+#ifndef FIRMWORKSBUGS
        mtmsr   0                       /* Disable FPU/MMU/exceptions */
+#endif
 #if defined(PMAP_OEA64_BRIDGE)
        mfmsr   0                       /* Clear SF and ISF bits */
        clrldi  0,0,3



Home | Main Index | Thread Index | Old Index