mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-26 07:38:21 +08:00
Added smp specific variables to resolve linker errors with RealTek Nic.
This commit is contained in:
parent
da162c83ea
commit
cb087c6c57
@ -23,11 +23,17 @@
|
|||||||
#include <freebsd/sys/smp.h>
|
#include <freebsd/sys/smp.h>
|
||||||
#include <freebsd/machine/smp.h>
|
#include <freebsd/machine/smp.h>
|
||||||
|
|
||||||
int mp_ncpus;
|
int mp_ncpus;
|
||||||
int mp_maxcpus;
|
int mp_maxcpus;
|
||||||
|
cpumask_t all_cpus;
|
||||||
|
u_int mp_maxid;
|
||||||
|
|
||||||
static void configure(void *dummy)
|
static void configure(void *dummy)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
all_cpus = 0x0;
|
||||||
|
|
||||||
#if defined(RTEMS_SMP)
|
#if defined(RTEMS_SMP)
|
||||||
mp_ncpus = rtems_smp_get_number_of_processors();
|
mp_ncpus = rtems_smp_get_number_of_processors();
|
||||||
mp_maxcpus = rtems_configuration_smp_maximum_processors;
|
mp_maxcpus = rtems_configuration_smp_maximum_processors;
|
||||||
@ -35,6 +41,10 @@ static void configure(void *dummy)
|
|||||||
mp_ncpus = 1;
|
mp_ncpus = 1;
|
||||||
mp_maxcpus = 1;
|
mp_maxcpus = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
mp_maxid = mp_maxcpus;
|
||||||
|
for(i=0; i< mp_ncpus; i++)
|
||||||
|
all_cpus |= 0x1 << i;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX setup initialization of this */
|
/* XXX setup initialization of this */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user