mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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:
parent
852761c216
commit
9725389e1e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191309
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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) */
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user