diff --git a/sys/arch/sun3/sun3/pmap.c b/sys/arch/sun3/sun3/pmap.c index 3ab936da8515..035aab4e20b9 100644 --- a/sys/arch/sun3/sun3/pmap.c +++ b/sys/arch/sun3/sun3/pmap.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pmap.c,v 1.31 1994/07/14 01:18:46 gwr Exp $ + * $Id: pmap.c,v 1.32 1994/07/14 01:24:19 gwr Exp $ */ #include #include @@ -1645,14 +1645,14 @@ void pmap_remove_range_mmu(pmap, sva, eva) pmeg_t pmegp; vm_offset_t va,pte; - saved_context = get_context(); - if (pmap != kernel_pmap) - set_context(pmap->pm_context->context_num); - /* XXX - Never unmap DVMA space... */ if (sva >= VM_MAX_KERNEL_ADDRESS) return; + saved_context = get_context(); + if (pmap != kernel_pmap) + set_context(pmap->pm_context->context_num); + sme = get_segmap(sva); if (sme != SEGINV) { pmegp = pmeg_p(sme);