From owner-svn-src-user@FreeBSD.ORG Mon May 9 07:01:20 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45F271065673; Mon, 9 May 2011 07:01:20 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 389D18FC12; Mon, 9 May 2011 07:01:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4971KWk080184; Mon, 9 May 2011 07:01:20 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4971KTn080181; Mon, 9 May 2011 07:01:20 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201105090701.p4971KTn080181@svn.freebsd.org> From: Andriy Gapon Date: Mon, 9 May 2011 07:01:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r221674 - in user/avg/xcpu/sys: kern sys X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 07:01:20 -0000 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 */