summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-12 08:38:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-12 08:38:21 +0000
commit237cd01a1c6da04d57048718a79f53f6817f42eb (patch)
tree7c6b650af4cd110b84babf78e354bea3d3781178 /sys/arch/sparc
parent6f3f95adc81564c13ad91c029a0951070c0a14eb (diff)
mmu_3l changes
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/pmap.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c
index 3ba37c0712f..79a0622bf18 100644
--- a/sys/arch/sparc/sparc/pmap.c
+++ b/sys/arch/sparc/sparc/pmap.c
@@ -656,6 +656,10 @@ setpte4m(va, pte)
/*----------------------------------------------------------------*/
#ifdef SUN4
+extern int mmu_3l;
+#endif
+
+#ifdef SUN4
#define CTX_USABLE(pm,rp) (CPU_ISSUN4M \
? ((pm)->pm_ctx != NULL ) \
: ((pm)->pm_ctx != NULL && \
@@ -3653,9 +3657,12 @@ pmap_pinit(pm)
TAILQ_INIT(&pm->pm_seglist);
#ifdef SUN4
TAILQ_INIT(&pm->pm_reglist);
- if (mmu_3l)
- for (i = NUREG; --i >= 0;)
- pm->pm_regmap[i].rg_smeg = reginval;
+ if (mmu_3l) {
+ int i;
+
+ for (i = NUREG; --i >= 0;)
+ pm->pm_regmap[i].rg_smeg = reginval;
+ }
#endif
}
#if defined(SUN4M)