diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index ead1a80..95e3225 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -136,10 +136,6 @@ int dumping; /* system is dumping */ int rebooting; /* system is rebooting */ static struct dumperinfo dumper; /* our selected dumper */ -#ifdef SMP -static u_int panic_cpu = NOCPU; -#endif - /* Context information for dump-debuggers. */ static struct pcb dumppcb; /* Registers. */ static lwpid_t dumptid; /* Thread ID. */ @@ -534,6 +530,9 @@ shutdown_reset(void *junk, int howto) void panic(const char *fmt, ...) { +#ifdef SMP + static volatile u_int panic_cpu = NOCPU; +#endif struct thread *td = curthread; int bootopt, newpanic; int panic_stopped_cpus;