Date: Sun, 19 Apr 2009 21:26:37 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191278 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include Message-ID: <200904192126.n3JLQbau020665@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904192126.n3JLQbau020665>