diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-03-22 10:14:41 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-03-22 10:14:41 -0500 |
commit | cb087c6c576c5d283ae2fa7c4d32a52e9ba906d7 (patch) | |
tree | 0d5c8e4b06385cd3563e673e0b1f579d8134480e | |
parent | Added taskqueue to resolve linking issues with the RealTek Nic. (diff) | |
download | rtems-libbsd-cb087c6c576c5d283ae2fa7c4d32a52e9ba906d7.tar.bz2 |
Added smp specific variables to resolve linker errors with RealTek Nic.
-rw-r--r-- | rtemsbsd/src/rtems-bsd-smp.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/rtemsbsd/src/rtems-bsd-smp.c b/rtemsbsd/src/rtems-bsd-smp.c index aa326a40..56ef60ba 100644 --- a/rtemsbsd/src/rtems-bsd-smp.c +++ b/rtemsbsd/src/rtems-bsd-smp.c @@ -23,11 +23,17 @@ #include <freebsd/sys/smp.h> #include <freebsd/machine/smp.h> -int mp_ncpus; -int mp_maxcpus; +int mp_ncpus; +int mp_maxcpus; +cpumask_t all_cpus; +u_int mp_maxid; static void configure(void *dummy) { + int i; + + all_cpus = 0x0; + #if defined(RTEMS_SMP) mp_ncpus = rtems_smp_get_number_of_processors(); mp_maxcpus = rtems_configuration_smp_maximum_processors; @@ -35,6 +41,10 @@ static void configure(void *dummy) mp_ncpus = 1; mp_maxcpus = 1; #endif + + mp_maxid = mp_maxcpus; + for(i=0; i< mp_ncpus; i++) + all_cpus |= 0x1 << i; } /* XXX setup initialization of this */ |