summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-08-08 17:40:28 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-08-08 17:40:28 +0000
commit30dd88a8c5db526c6466d9474919377e1e881b53 (patch)
tree0d81fa1a3629924671791c903e9e9f58b5aed7fe /sys/arch/sparc
parent6a70753cea0174e99894351a1333aa15432da2d8 (diff)
call setcontext{4,4m} directly when we know the CPU type already
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/pmap.c6
1 files changed, 3 insertions, 3 deletions
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