svn commit: r213934 - stable/8/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sat Oct 16 19:58:50 UTC 2010
Author: avg
Date: Sat Oct 16 19:58:49 2010
New Revision: 213934
URL: http://svn.freebsd.org/changeset/base/213934
Log:
MFC r213648: panic_cpu variable should be volatile
Modified:
stable/8/sys/kern/kern_shutdown.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/kern/kern_shutdown.c
==============================================================================
--- stable/8/sys/kern/kern_shutdown.c Sat Oct 16 19:56:46 2010 (r213933)
+++ stable/8/sys/kern/kern_shutdown.c Sat Oct 16 19:58:49 2010 (r213934)
@@ -513,10 +513,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
@@ -525,6 +521,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