svn commit: r213935 - stable/7/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sat Oct 16 20:01:42 UTC 2010
Author: avg
Date: Sat Oct 16 20:01:41 2010
New Revision: 213935
URL: http://svn.freebsd.org/changeset/base/213935
Log:
MFC r213648: panic_cpu variable should be volatile
Modified:
stable/7/sys/kern/kern_shutdown.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/kern/kern_shutdown.c
==============================================================================
--- stable/7/sys/kern/kern_shutdown.c Sat Oct 16 19:58:49 2010 (r213934)
+++ stable/7/sys/kern/kern_shutdown.c Sat Oct 16 20:01:41 2010 (r213935)
@@ -497,10 +497,6 @@ shutdown_reset(void *junk, int howto)
/* NOTREACHED */ /* assuming reset worked */
}
-#ifdef SMP
-static u_int panic_cpu = NOCPU;
-#endif
-
/*
* Panic is called on unresolvable fatal errors. It prints "panic: mesg",
* and then reboots. If we are called twice, then we avoid trying to sync
@@ -509,6 +505,9 @@ static u_int panic_cpu = NOCPU;
void
panic(const char *fmt, ...)
{
+#ifdef SMP
+ static volatile u_int panic_cpu = NOCPU;
+#endif
struct thread *td = curthread;
int bootopt, newpanic;
va_list ap;
More information about the svn-src-stable
mailing list