Don't conditionally define CACHE_LINE_SHIFT, as we anticipate sizing

a fair number of static data structures, making this an unlikely
option to try to change without also changing source code. [1]

Change default cache line size on ia64, sparc64, and sun4v to 128
bytes, as this was what rtld-elf was already using on those
platforms. [2]

Suggested by:	bde [1], jhb [2]
MFC after:	2 weeks
This commit is contained in:
Robert Watson 2009-04-20 12:59:23 +00:00
parent 852761c216
commit 9725389e1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191309
8 changed files with 3 additions and 19 deletions

View file

@ -93,9 +93,7 @@
* 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
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
/* Size of the level 1 page table units */

View file

@ -85,9 +85,7 @@
* 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
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#define PAGE_SHIFT 12

View file

@ -78,9 +78,7 @@
* 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
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */

View file

@ -103,9 +103,7 @@
* 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
#define CACHE_LINE_SHIFT 7
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#ifndef LOG2_PAGE_SIZE

View file

@ -93,9 +93,7 @@
* 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
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#define NBPG 4096 /* bytes/page */

View file

@ -83,9 +83,7 @@
* 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
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#define PAGE_SHIFT 12

View file

@ -75,9 +75,7 @@
* 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
#define CACHE_LINE_SHIFT 7
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#define PAGE_SHIFT_8K 13

View file

@ -75,9 +75,7 @@
* 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
#define CACHE_LINE_SHIFT 7
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT)
#define PAGE_SHIFT_8K 13