Make smp_started volatile in sys/smp.h and remove the volatile
declaration in subr_smp.c. This solves a compile problem with gcc 3.0.1 (ia64 cross-build). Reviewed: jhb
This commit is contained in:
parent
1fe003b61f
commit
8b3e7871bc
@ -51,7 +51,6 @@ volatile u_int started_cpus;
|
|||||||
void (*cpustop_restartfunc) __P((void));
|
void (*cpustop_restartfunc) __P((void));
|
||||||
int mp_ncpus;
|
int mp_ncpus;
|
||||||
|
|
||||||
volatile int smp_started;
|
|
||||||
u_int all_cpus;
|
u_int all_cpus;
|
||||||
|
|
||||||
SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, NULL, "Kernel SMP");
|
SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, NULL, "Kernel SMP");
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
extern void (*cpustop_restartfunc)(void);
|
extern void (*cpustop_restartfunc)(void);
|
||||||
extern int mp_ncpus;
|
extern int mp_ncpus;
|
||||||
extern int smp_active;
|
extern int smp_active;
|
||||||
extern int smp_started;
|
extern volatile int smp_started;
|
||||||
extern int smp_cpus;
|
extern int smp_cpus;
|
||||||
extern u_int all_cpus;
|
extern u_int all_cpus;
|
||||||
extern volatile u_int started_cpus;
|
extern volatile u_int started_cpus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user