mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Add options to select between 4k, 8k and 16k page sizes on ia64. The
default is now 8k.
This commit is contained in:
parent
b68657dd33
commit
d452f533f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83198
@ -3,6 +3,10 @@
|
||||
|
||||
ITANIUM opt_global.h
|
||||
|
||||
PAGE_SIZE_4K opt_global.h
|
||||
PAGE_SIZE_8K opt_global.h
|
||||
PAGE_SIZE_16K opt_global.h
|
||||
|
||||
PPC_PROBE_CHIPSET opt_ppc.h
|
||||
PPC_DEBUG opt_ppc.h
|
||||
|
||||
|
@ -112,8 +112,23 @@
|
||||
#define ALIGN(p) _ALIGN(p)
|
||||
#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t)
|
||||
|
||||
#if !defined(PAGE_SIZE_4K) && !defined(PAGE_SIZE_8K) && !defined(PAGE_SIZE_16K)
|
||||
#define PAGE_SIZE_8K
|
||||
#endif
|
||||
|
||||
#ifdef PAGE_SIZE_4K
|
||||
#define PAGE_SIZE 4096 /* bytes/page */
|
||||
#define PAGE_SHIFT 12
|
||||
#endif
|
||||
#ifdef PAGE_SIZE_8K
|
||||
#define PAGE_SIZE 8192 /* bytes/page */
|
||||
#define PAGE_SHIFT 13
|
||||
#endif
|
||||
#ifdef PAGE_SIZE_16K
|
||||
#define PAGE_SIZE 16384 /* bytes/page */
|
||||
#define PAGE_SHIFT 14
|
||||
#endif
|
||||
|
||||
#define PAGE_MASK (PAGE_SIZE-1)
|
||||
#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user