Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2011 14:40:24 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221890 - head/sys/ia64/include
Message-ID:  <201105141440.p4EEeOCc006265@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat May 14 14:40:24 2011
New Revision: 221890
URL: http://svn.freebsd.org/changeset/base/221890

Log:
  Be pedantic: mark the pcpu pointer (= register r13) itself as volatile.

Modified:
  head/sys/ia64/include/pcpu.h

Modified: head/sys/ia64/include/pcpu.h
==============================================================================
--- head/sys/ia64/include/pcpu.h	Sat May 14 14:36:08 2011	(r221889)
+++ head/sys/ia64/include/pcpu.h	Sat May 14 14:40:24 2011	(r221890)
@@ -68,7 +68,7 @@ struct pcpu_md {
 
 struct pcpu;
 
-register struct pcpu *pcpup __asm__("r13");
+register struct pcpu * volatile pcpup __asm__("r13");
 
 static __inline __pure2 struct thread *
 __curthread(void)



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