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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to