Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/explora Establish kernel MMU context before ...



details:   https://anonhg.NetBSD.org/src/rev/2cc4f6e6f921
branches:  trunk
changeset: 959969:2cc4f6e6f921
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Mar 02 07:44:08 2021 +0000

description:
Establish kernel MMU context before turning on MMU.

diffstat:

 sys/arch/evbppc/explora/explora_start.S |  7 ++++++-
 sys/arch/evbppc/explora/machdep.c       |  9 ++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r 32b0f15b1a0f -r 2cc4f6e6f921 sys/arch/evbppc/explora/explora_start.S
--- a/sys/arch/evbppc/explora/explora_start.S   Tue Mar 02 07:38:48 2021 +0000
+++ b/sys/arch/evbppc/explora/explora_start.S   Tue Mar 02 07:44:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: explora_start.S,v 1.11 2013/10/03 22:28:38 matt Exp $  */
+/*     $NetBSD: explora_start.S,v 1.12 2021/03/02 07:44:08 rin Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -186,6 +186,11 @@
        cmpw    7,4
        bne+    1b
 
+/* Set kernel MMU context. */
+       li      0,KERNEL_PID
+       mtpid   0
+       sync
+
        INIT_CPUINFO(4,1,9,0)
 
        lis     3,__start@h
diff -r 32b0f15b1a0f -r 2cc4f6e6f921 sys/arch/evbppc/explora/machdep.c
--- a/sys/arch/evbppc/explora/machdep.c Tue Mar 02 07:38:48 2021 +0000
+++ b/sys/arch/evbppc/explora/machdep.c Tue Mar 02 07:44:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.40 2020/06/11 19:20:43 ad Exp $  */
+/*     $NetBSD: machdep.c,v 1.41 2021/03/02 07:44:08 rin Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.40 2020/06/11 19:20:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.41 2021/03/02 07:44:08 rin Exp $");
 
 #include "opt_explora.h"
 #include "opt_modular.h"
@@ -117,11 +117,6 @@
        avail_mem[0].start = startkernel;
        avail_mem[0].size = size-startkernel;
 
-       __asm volatile(
-           "   mtpid %0        \n"
-           "   sync            \n"
-           : : "r" (KERNEL_PID) );
-
        /*
         * Setup initial tlbs.
         * Kernel memory and console device are



Home | Main Index | Thread Index | Old Index