From owner-svn-src-all@FreeBSD.ORG Sun Apr 19 21:26:37 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE71106568D; Sun, 19 Apr 2009 21:26:37 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6C0948FC22; Sun, 19 Apr 2009 21:26:37 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3JLQbNZ020674; Sun, 19 Apr 2009 21:26:37 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3JLQbau020665; Sun, 19 Apr 2009 21:26:37 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <200904192126.n3JLQbau020665@svn.freebsd.org> From: Robert Watson Date: Sun, 19 Apr 2009 21:26:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191278 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2009 21:26:38 -0000 Author: rwatson Date: Sun Apr 19 21:26:36 2009 New Revision: 191278 URL: http://svn.freebsd.org/changeset/base/191278 Log: Add description and cautionary note regarding CACHE_LINE_SIZE. MFC after: 2 weeks Suggested by: alc Modified: head/sys/amd64/include/param.h head/sys/arm/include/param.h head/sys/i386/include/param.h head/sys/ia64/include/param.h head/sys/mips/include/param.h head/sys/powerpc/include/param.h head/sys/sparc64/include/param.h head/sys/sun4v/include/param.h Modified: head/sys/amd64/include/param.h ============================================================================== --- head/sys/amd64/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/amd64/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -89,6 +89,10 @@ #define ALIGN(p) _ALIGN(p) #define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif Modified: head/sys/arm/include/param.h ============================================================================== --- head/sys/arm/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/arm/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -81,6 +81,10 @@ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif Modified: head/sys/i386/include/param.h ============================================================================== --- head/sys/i386/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/i386/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -74,6 +74,10 @@ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif Modified: head/sys/ia64/include/param.h ============================================================================== --- head/sys/ia64/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/ia64/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -99,6 +99,10 @@ #define ALIGN(p) _ALIGN(p) #define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif Modified: head/sys/mips/include/param.h ============================================================================== --- head/sys/mips/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/mips/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -89,6 +89,10 @@ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif Modified: head/sys/powerpc/include/param.h ============================================================================== --- head/sys/powerpc/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/powerpc/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -79,6 +79,10 @@ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 7 #endif Modified: head/sys/sparc64/include/param.h ============================================================================== --- head/sys/sparc64/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/sparc64/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -71,6 +71,10 @@ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif Modified: head/sys/sun4v/include/param.h ============================================================================== --- head/sys/sun4v/include/param.h Sun Apr 19 20:53:47 2009 (r191277) +++ head/sys/sun4v/include/param.h Sun Apr 19 21:26:36 2009 (r191278) @@ -71,6 +71,10 @@ #define ALIGNBYTES _ALIGNBYTES #define ALIGN(p) _ALIGN(p) +/* + * CACHE_LINE_SIZE is the compile-time maximum cache line size for an + * architecture. It should be used with appropriate caution. + */ #ifndef CACHE_LINE_SHIFT #define CACHE_LINE_SHIFT 6 #endif