-/* $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 $ */
/*-
#include <machine/cpu.h>
#include <machine/intr.h>
-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
/*
* Process IPIs for a CPU.
*/
-static int
+int
mips64_ipi_intr(void *arg)
{
unsigned int pending_ipis, bit;
}
}
-static void
+void
mips64_ipi_nop(void)
{
#ifdef DEBUG
mtx_leave(&smp_ipi_mtx);
}
-static void
+void
mips64_ipi_ddb(void)
{
#ifdef DDB