diff options
| author | pk <pk@NetBSD.org> | 1997-10-01 19:21:17 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1997-10-01 19:21:17 +0000 |
| commit | feaaceb801b73c989e8cf48f4757f0ef0c73ff3f (patch) | |
| tree | 6a00d9667ee96867986cdeef092627931f53fef0 /sys | |
| parent | 78e5dc866c29ebb74d0114c884db2fd4dd31b853 (diff) | |
Missing `#ifdef SUN4M' in pmap_release(); rearrange slightly to look
more natural.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index 4745ce1902d..b48b3522c6a 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.101 1997/09/27 17:58:03 pk Exp $ */ +/* $NetBSD: pmap.c,v 1.102 1997/10/01 19:21:17 pk Exp $ */ /* * Copyright (c) 1996 @@ -3735,6 +3735,19 @@ pmap_release(pm) ctx_free(pm); } } + +#if defined(SUN4M) + if (CPU_ISSUN4M) { + if ((c = pm->pm_ctx) != NULL) { + if (pm->pm_ctxnum == 0) + panic("pmap_release: releasing kernel"); + ctx_free(pm); + } + pgtfree(pm->pm_reg_ptps, SRMMU_L1SIZE * sizeof(int)); + pm->pm_reg_ptps = NULL; + pm->pm_reg_ptps_pa = 0; + } +#endif splx(s); #ifdef DEBUG @@ -3763,19 +3776,9 @@ if (pmapdebug) { } } #endif + if (pm->pm_regstore) free(pm->pm_regstore, M_VMPMAP); - - if (CPU_ISSUN4M) { - if ((c = pm->pm_ctx) != NULL) { - if (pm->pm_ctxnum == 0) - panic("pmap_release: releasing kernel"); - ctx_free(pm); - } - pgtfree(pm->pm_reg_ptps, SRMMU_L1SIZE * sizeof(int)); - pm->pm_reg_ptps = NULL; - pm->pm_reg_ptps_pa = 0; - } } /* |
