From 45357c03a9f3a7518001fae4a2ca3b444569e2be Mon Sep 17 00:00:00 2001 From: miod Date: Mon, 20 Apr 2015 19:08:52 +0000 Subject: [PATCH] Remove most static, gives us much better ddb tracebacks from secondary processors. --- sys/arch/mips64/mips64/ipifuncs.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sys/arch/mips64/mips64/ipifuncs.c b/sys/arch/mips64/mips64/ipifuncs.c index febedd14845..d3e9d789f77 100644 --- a/sys/arch/mips64/mips64/ipifuncs.c +++ b/sys/arch/mips64/mips64/ipifuncs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipifuncs.c,v 1.9 2014/09/30 06:51:58 jmatthew Exp $ */ +/* $OpenBSD: ipifuncs.c,v 1.10 2015/04/20 19:08:52 miod Exp $ */ /* $NetBSD: ipifuncs.c,v 1.40 2008/04/28 20:23:10 martin Exp $ */ /*- @@ -42,19 +42,19 @@ #include #include -static int mips64_ipi_intr(void *); -static void mips64_ipi_nop(void); -static void smp_rendezvous_action(void); -static void mips64_ipi_ddb(void); -static void mips64_multicast_ipi(unsigned int, unsigned int); -static unsigned int ipi_mailbox[MAXCPUS]; +int mips64_ipi_intr(void *); +void mips64_ipi_nop(void); +void smp_rendezvous_action(void); +void mips64_ipi_ddb(void); +void mips64_multicast_ipi(unsigned int, unsigned int); +unsigned int ipi_mailbox[MAXCPUS]; /* Variables needed for SMP rendezvous. */ struct mutex smp_ipi_mtx; -static volatile unsigned long smp_rv_map; -static void (*volatile smp_rv_action_func)(void *arg); -static void * volatile smp_rv_func_arg; -static volatile unsigned int smp_rv_waiters[2]; +volatile unsigned long smp_rv_map; +void (*volatile smp_rv_action_func)(void *arg); +void * volatile smp_rv_func_arg; +volatile unsigned int smp_rv_waiters[2]; /* * NOTE: This table must be kept in order with the bit definitions @@ -90,7 +90,7 @@ mips64_ipi_init(void) /* * Process IPIs for a CPU. */ -static int +int mips64_ipi_intr(void *arg) { unsigned int pending_ipis, bit; @@ -152,7 +152,7 @@ mips64_multicast_ipi(unsigned int cpumask, unsigned int ipimask) } } -static void +void mips64_ipi_nop(void) { #ifdef DEBUG @@ -226,7 +226,7 @@ smp_rendezvous_cpus(unsigned long map, mtx_leave(&smp_ipi_mtx); } -static void +void mips64_ipi_ddb(void) { #ifdef DDB -- 2.20.1