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 Call cpu_model_init() after clearing ...



details:   https://anonhg.NetBSD.org/src/rev/e9e1bd637359
branches:  trunk
changeset: 959397:e9e1bd637359
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Feb 13 01:11:58 2021 +0000

description:
Call cpu_model_init() after clearing the MSR.

diffstat:

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

diffs (30 lines):

diff -r 8a2d0311c601 -r e9e1bd637359 sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Fri Feb 12 23:40:02 2021 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Sat Feb 13 01:11:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.75 2021/02/11 19:06:24 macallan Exp $     */
+/*     $NetBSD: locore.S,v 1.76 2021/02/13 01:11:58 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -82,9 +82,6 @@
        .globl  __start
 __start:
        bl      _C_LABEL(ofwinit)               /* init OF */
-       mr      13,6
-       mr      14,7
-       bl      _C_LABEL(cpu_model_init)        /* init oeacpufeat */
 
        li      0,0
 #ifndef FIRMWORKSBUGS
@@ -92,6 +89,10 @@
 #endif
        isync
 
+       mr      13,6
+       mr      14,7
+       bl      _C_LABEL(cpu_model_init)        /* init oeacpufeat */
+
 /* compute end of kernel memory */
        lis     4,_C_LABEL(end)@ha
        addi    4,4,_C_LABEL(end)@l



Home | Main Index | Thread Index | Old Index