summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-10-17 20:16:12 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-10-17 20:16:12 +0000
commitf903fd29b746109f44fd8bb53ee67d20ec18ce82 (patch)
tree5c49605d92acfd1b527629c0a972cb16e3ecae46
parent6ebd6f0640abbc5048b4975c40fac23ec404930b (diff)
Get proc_trampoline() ready for MULTIPROCESSOR.
-rw-r--r--sys/arch/sparc64/sparc64/locore.s8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s
index 3916e49e993..9658e9de666 100644
--- a/sys/arch/sparc64/sparc64/locore.s
+++ b/sys/arch/sparc64/sparc64/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.87 2007/10/17 19:25:22 kettenis Exp $ */
+/* $OpenBSD: locore.s,v 1.88 2007/10/17 20:16:11 kettenis Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
@@ -5813,6 +5813,12 @@ ENTRY(snapshot)
* and when returning a child to user mode after a fork(2).
*/
ENTRY(proc_trampoline)
+#ifdef MULTIPROCESSOR
+ save %sp, -CC64FSZ, %sp
+ call _C_LABEL(proc_trampoline_mp)
+ nop
+ restore
+#endif
wrpr %g0, 0, %pil ! Reset interrupt level
call %l0 ! re-use current frame
mov %l1, %o0