[rtems-libbsd commit] Add SYSINIT for RTEMS SMP variable initialization

Joel Sherrill joel at rtems.org
Thu Apr 19 17:37:15 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    148b3fd7e59d609c5f9e9bee766148cc56551963
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=148b3fd7e59d609c5f9e9bee766148cc56551963

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Apr 19 12:40:07 2012 -0500

Add SYSINIT for RTEMS SMP variable initialization

---

 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 56ef60b..8d8a84b 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");




More information about the vc mailing list