Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2011 07:01:20 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r221674 - in user/avg/xcpu/sys: kern sys
Message-ID:  <201105090701.p4971KTn080181@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Mon May  9 07:01:19 2011
New Revision: 221674
URL: http://svn.freebsd.org/changeset/base/221674

Log:
  make panicstr a volatile pointer
  
  this is just to be safe and extra correct rather than to fix any real
  issue

Modified:
  user/avg/xcpu/sys/kern/kern_shutdown.c
  user/avg/xcpu/sys/sys/systm.h

Modified: user/avg/xcpu/sys/kern/kern_shutdown.c
==============================================================================
--- user/avg/xcpu/sys/kern/kern_shutdown.c	Mon May  9 00:29:20 2011	(r221673)
+++ user/avg/xcpu/sys/kern/kern_shutdown.c	Mon May  9 07:01:19 2011	(r221674)
@@ -127,7 +127,7 @@ SYSCTL_NODE(_kern, OID_AUTO, shutdown, C
  * Variable panicstr contains argument to first call to panic; used as flag
  * to indicate that the kernel has already called panic.
  */
-const char *panicstr;
+const char * volatile panicstr;
 
 int dumping;				/* system is dumping */
 int rebooting;				/* system is rebooting */

Modified: user/avg/xcpu/sys/sys/systm.h
==============================================================================
--- user/avg/xcpu/sys/sys/systm.h	Mon May  9 00:29:20 2011	(r221673)
+++ user/avg/xcpu/sys/sys/systm.h	Mon May  9 07:01:19 2011	(r221674)
@@ -47,7 +47,7 @@
 
 extern int cold;		/* nonzero if we are doing a cold boot */
 extern int rebooting;		/* kern_reboot() has been called. */
-extern const char *panicstr;	/* panic message */
+extern const char * volatile panicstr;	/* panic message */
 extern char version[];		/* system version */
 extern char copyright[];	/* system copyright */
 extern int kstack_pages;	/* number of kernel stack pages */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105090701.p4971KTn080181>