Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 More TLB flush paranoia.



details:   https://anonhg.NetBSD.org/src/rev/922b6197fdc7
branches:  sommerfeld_i386mp_1
changeset: 482314:922b6197fdc7
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sat Nov 18 23:10:52 2000 +0000

description:
More TLB flush paranoia.

diffstat:

 sys/arch/i386/i386/pmap.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 162c1a7fb3ab -r 922b6197fdc7 sys/arch/i386/i386/pmap.c
--- a/sys/arch/i386/i386/pmap.c Sat Nov 18 22:56:26 2000 +0000
+++ b/sys/arch/i386/i386/pmap.c Sat Nov 18 23:10:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.83.2.12 2000/11/18 22:48:10 sommerfeld Exp $        */
+/*     $NetBSD: pmap.c,v 1.83.2.13 2000/11/18 23:10:52 sommerfeld Exp $        */
 
 /*
  *
@@ -2259,6 +2259,7 @@
 #endif
 
        *zpte = (pa & PG_FRAME) | PG_V | PG_RW;         /* map in */
+       pmap_update_pg((vaddr_t)zerova);                /* flush TLB */
        memset(zerova, 0, NBPG);                        /* zero */
        *zpte = 0;                                      /* zap! */
        pmap_update_pg((vaddr_t)zerova);                /* flush TLB */
@@ -2288,6 +2289,7 @@
 
        *zpte = (pa & PG_FRAME) | PG_V | PG_RW |        /* map in */
            ((cpu_class != CPUCLASS_386) ? PG_N : 0);
+       pmap_update_pg((vaddr_t)zerova);                /* flush TLB */
        memset(zerova, 0, NBPG);                        /* zero */
        *zpte = 0;                                      /* zap! */
        pmap_update_pg((vaddr_t)zerova);                /* flush TLB */



Home | Main Index | Thread Index | Old Index