From 30dd88a8c5db526c6466d9474919377e1e881b53 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 8 Aug 2002 17:40:28 +0000 Subject: call setcontext{4,4m} directly when we know the CPU type already --- sys/arch/sparc/sparc/pmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index ae9897b5aa5..7bf598a54ce 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.126 2002/07/24 00:55:52 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.127 2002/08/08 17:40:27 jason Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -1849,7 +1849,7 @@ ctx_free(pm) newc = pm->pm_ctxnum; CHANGE_CONTEXTS(oldc, newc); cache_flush_context(); - setcontext(0); + setcontext4(0); } else { CHANGE_CONTEXTS(oldc, 0); } @@ -5560,7 +5560,7 @@ pmap_kenter_pa4m(va, pa, prot) ctx = getcontext4m(); pmap_enk4m(pmap_kernel(), va, prot, TRUE, pv, pteproto); - setcontext(ctx); + setcontext4m(ctx); } void -- cgit v1.2.3