Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mvme68k/mvme68k Commit a change I've had lying arou...



details:   https://anonhg.NetBSD.org/src/rev/b31fc4f4653b
branches:  trunk
changeset: 517224:b31fc4f4653b
user:      scw <scw%NetBSD.org@localhost>
date:      Thu Nov 08 21:53:44 2001 +0000

description:
Commit a change I've had lying around for a while: Initialise wired
PTEs with `PG_U' to avoid them being needlessly updated when first
accessed.

diffstat:

 sys/arch/mvme68k/mvme68k/pmap_bootstrap.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r ff001367fd5a -r b31fc4f4653b sys/arch/mvme68k/mvme68k/pmap_bootstrap.c
--- a/sys/arch/mvme68k/mvme68k/pmap_bootstrap.c Thu Nov 08 21:41:42 2001 +0000
+++ b/sys/arch/mvme68k/mvme68k/pmap_bootstrap.c Thu Nov 08 21:53:44 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.16 2001/08/12 18:33:13 scw Exp $  */
+/*     $NetBSD: pmap_bootstrap.c,v 1.17 2001/11/08 21:53:44 scw Exp $  */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -249,7 +249,7 @@
                 */
                pte = (u_int *)kptmpa;
                epte = &pte[nptpages+1];
-               protopte = kptpa | PG_RW | PG_CI | PG_V;
+               protopte = kptpa | PG_RW | PG_CI | PG_U | PG_V;
                while (pte < epte) {
                        *pte++ = protopte;
                        protopte += NBPG;
@@ -261,7 +261,7 @@
                while (pte < epte) {
                        *pte++ = PG_NV;
                }
-               *pte = lkptpa | PG_RW | PG_CI | PG_V;
+               *pte = lkptpa | PG_RW | PG_CI | PG_U | PG_V;
        } else
 #endif /* M68040 || M68060 */
        {
@@ -319,7 +319,7 @@
         */
        pte = &((u_int *)kptpa)[m68k_btop(KERNBASE)];
        epte = &pte[m68k_btop(m68k_trunc_page(&etext))];
-       protopte = firstpa | PG_RO | PG_V;
+       protopte = firstpa | PG_RO | PG_U | PG_V;
        while (pte < epte) {
                *pte++ = protopte;
                protopte += NBPG;
@@ -348,8 +348,8 @@
        epte = &((u_int *)kptpa)[m68k_btop(nextpa - firstpa)];
        protopte = (protopte & ~PG_PROT) | PG_RW;
        if (RELOC(mmutype, int) == MMU_68040) {
-               protopte &= ~PG_CCB;
-               protopte |= PG_CIN;
+               protopte &= ~PG_CMASK;
+               protopte |= PG_CI;
        }
        while (pte < epte) {
                *pte++ = protopte;
@@ -360,7 +360,7 @@
         */
        pte = (u_int *)iiopa;
        epte = (u_int *)kptmpa;
-       protopte = RELOC(intiobase_phys, u_int) | PG_RW | PG_CI | PG_V;
+       protopte = RELOC(intiobase_phys, u_int) | PG_RW | PG_CI | PG_U | PG_V;
        while (pte < epte) {
                *pte++ = protopte;
                protopte += NBPG;



Home | Main Index | Thread Index | Old Index