From ba432fced1a016cdf4326d4db1d99aa1857490d4 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 3 Sep 1999 18:33:43 +0000 Subject: 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. --- sys/arch/sparc/sparc/pmap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') 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"); -- cgit v1.2.3