diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-04-19 12:40:07 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-04-19 12:40:07 -0500 |
commit | 148b3fd7e59d609c5f9e9bee766148cc56551963 (patch) | |
tree | aad160974ddc5c8405b5cbf731cb18122a951285 | |
parent | Add missing files (diff) | |
download | rtems-libbsd-148b3fd7e59d609c5f9e9bee766148cc56551963.tar.bz2 |
Add SYSINIT for RTEMS SMP variable initialization
-rw-r--r-- | rtemsbsd/src/rtems-bsd-smp.c | 5 |
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"); |