summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-04-19 12:40:07 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-04-19 12:40:07 -0500
commit148b3fd7e59d609c5f9e9bee766148cc56551963 (patch)
treeaad160974ddc5c8405b5cbf731cb18122a951285
parentAdd missing files (diff)
downloadrtems-libbsd-148b3fd7e59d609c5f9e9bee766148cc56551963.tar.bz2
Add SYSINIT for RTEMS SMP variable initialization
-rw-r--r--rtemsbsd/src/rtems-bsd-smp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemsbsd/src/rtems-bsd-smp.c b/rtemsbsd/src/rtems-bsd-smp.c
index 56ef60ba..8d8a84b5 100644
--- a/rtemsbsd/src/rtems-bsd-smp.c
+++ b/rtemsbsd/src/rtems-bsd-smp.c
@@ -22,13 +22,14 @@
#include <freebsd/sys/smp.h>
#include <freebsd/machine/smp.h>
+#include <freebsd/sys/sysctl.h>
int mp_ncpus;
int mp_maxcpus;
cpumask_t all_cpus;
u_int mp_maxid;
-static void configure(void *dummy)
+static void smp_configure(void *dummy)
{
int i;
@@ -47,4 +48,4 @@ static void configure(void *dummy)
all_cpus |= 0x1 << i;
}
-/* XXX setup initialization of this */
+SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, smp_configure, "Kernel SMP");