summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2009-12-29 16:37:10 +0000
committerjsing <jsing@openbsd.org>2009-12-29 16:37:10 +0000
commit538500390d1996b2c5399fe6f6809dbf1dce04ae (patch)
tree175182730bc90dcb576d750500f7395687502ba1
parentadd missing paragraph break (.Pp) macro. (diff)
downloadwireguard-openbsd-538500390d1996b2c5399fe6f6809dbf1dce04ae.tar.xz
wireguard-openbsd-538500390d1996b2c5399fe6f6809dbf1dce04ae.zip
Call proc_trampoline_mp() from the process trampoline when compiled for MP.
ok kettenis@
-rw-r--r--sys/arch/hppa/hppa/locore.S10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/locore.S b/sys/arch/hppa/hppa/locore.S
index 13140a399f7..183f5863d8a 100644
--- a/sys/arch/hppa/hppa/locore.S
+++ b/sys/arch/hppa/hppa/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.162 2009/07/29 20:00:47 kettenis Exp $ */
+/* $OpenBSD: locore.S,v 1.163 2009/12/29 16:37:10 jsing Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -2898,6 +2898,14 @@ LEAF_ENTRY(cpu_idle_leave)
EXIT(cpu_idle_leave)
ENTRY(switch_trampoline,0)
+#ifdef MULTIPROCESSOR
+ copy t4, r3
+ copy arg0, r4
+ bl proc_trampoline_mp, rp
+ nop
+ copy r4, arg0
+ copy r3, t4
+#endif
ldil L%cpl, t1
stw r0, R%cpl(t1)
.call