diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-29 16:37:11 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2009-12-29 16:37:11 +0000 |
commit | 65c6e1718a31acdab88ad0bbf3fc632c452c8acb (patch) | |
tree | 2444fa36f9e39512977140427c13c901c2081895 /sys/arch | |
parent | 1767e43732eeab2291b0b16f3f135a0abfe488a1 (diff) |
Call proc_trampoline_mp() from the process trampoline when compiled for MP.
ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/locore.S | 10 |
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 |