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:
Marcel Moolenaar 2001-10-31 09:03:05 +00:00
parent 1fe003b61f
commit 8b3e7871bc
2 changed files with 1 additions and 2 deletions

View File

@ -51,7 +51,6 @@ volatile u_int started_cpus;
void (*cpustop_restartfunc) __P((void));
int mp_ncpus;
volatile int smp_started;
u_int all_cpus;
SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD, NULL, "Kernel SMP");

View File

@ -21,7 +21,7 @@
extern void (*cpustop_restartfunc)(void);
extern int mp_ncpus;
extern int smp_active;
extern int smp_started;
extern volatile int smp_started;
extern int smp_cpus;
extern u_int all_cpus;
extern volatile u_int started_cpus;