Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx ppc4xx_tlb_enter(): invalidate entry...



details:   https://anonhg.NetBSD.org/src/rev/4498e8a1469e
branches:  trunk
changeset: 745545:4498e8a1469e
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Mar 05 01:33:36 2020 +0000

description:
ppc4xx_tlb_enter(): invalidate entry after clearing MSR for sure.

diffstat:

 sys/arch/powerpc/ibm4xx/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 1054214dca9b -r 4498e8a1469e sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c    Thu Mar 05 01:31:27 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c    Thu Mar 05 01:33:36 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.81 2020/03/05 01:31:27 rin Exp $    */
+/*     $NetBSD: pmap.c,v 1.82 2020/03/05 01:33:36 rin Exp $    */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.81 2020/03/05 01:31:27 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.82 2020/03/05 01:33:36 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -1321,8 +1321,8 @@
        __asm volatile(
                "mfmsr %0;"                     /* Save MSR */
                "li %1,0;"
+               "mtmsr %1;"                     /* Clear MSR */
                "tlbwe %1,%3,0;"                /* Invalidate old entry. */
-               "mtmsr %1;"                     /* Clear MSR */
                "mfpid %1;"                     /* Save old PID */
                "mtpid %2;"                     /* Load translation ctx */
                "sync; isync;"



Home | Main Index | Thread Index | Old Index