diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-09-03 18:33:43 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-09-03 18:33:43 +0000 |
commit | ba432fced1a016cdf4326d4db1d99aa1857490d4 (patch) | |
tree | 1c8624852edab2dfa0a4c0685779b152776f91be /sys/arch | |
parent | 0538511c0a9248c3acf6f202cb2d448bc59f1344 (diff) |
use setpgt4m for the initial mappings too, not that it really matters since
those pages are already uncached when needed, but it makes it more obvious
what happens here.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index 0416d02833f..9949f6e1e5c 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.33 1999/09/03 18:11:29 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.34 1999/09/03 18:33:42 art Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -1197,14 +1197,14 @@ mmu_setup4m_L1(regtblptd, kpmap) for (k = 0; k < SRMMU_L3SIZE; k++) { sp->sg_npte++; - (sp->sg_pte)[k] = + setpgt4m(&sp->sg_pte[k], (te & SRMMU_L1PPNMASK) | (j << SRMMU_L2PPNSHFT) | (k << SRMMU_L3PPNSHFT) | (te & SRMMU_PGBITSMSK) | ((te & SRMMU_PROT_MASK) | PPROT_U2S_OMASK) | - SRMMU_TEPTE; + SRMMU_TEPTE); } } break; @@ -1250,14 +1250,14 @@ mmu_setup4m_L2(segtblptd, rp) */ for (k = 0; k < SRMMU_L3SIZE; k++) { sp->sg_npte++; - (sp->sg_pte)[k] = + setpgt4m(&sp->sg_pte[k], (te & SRMMU_L1PPNMASK) | (te & SRMMU_L2PPNMASK) | (k << SRMMU_L3PPNSHFT) | (te & SRMMU_PGBITSMSK) | ((te & SRMMU_PROT_MASK) | PPROT_U2S_OMASK) | - SRMMU_TEPTE; + SRMMU_TEPTE); } break; @@ -1288,7 +1288,7 @@ mmu_setup4m_L3(pagtblptd, sp) break; case SRMMU_TEPTE: sp->sg_npte++; - sp->sg_pte[i] = te | PPROT_U2S_OMASK; + setpgt4m(&sp->sg_pte[i], te | PPROT_U2S_OMASK); break; case SRMMU_TEPTD: panic("mmu_setup4m_L3: PTD found in L3 page table"); |