From 8b3e7871bcf77275263e0b78d97fa5fa5d901d82 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 31 Oct 2001 09:03:05 +0000 Subject: [PATCH] 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 --- sys/kern/subr_smp.c | 1 - sys/sys/smp.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 03c66129120..c046c6e8967 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -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"); diff --git a/sys/sys/smp.h b/sys/sys/smp.h index f887d08304d..3bb7a8084c4 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -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;