Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/include/param.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
#define L2_PAGE_SIZE_SHIFT 30 | #define L2_PAGE_SIZE_SHIFT 30 | ||||
#define L2_PAGE_SIZE (1UL<<L2_PAGE_SIZE_SHIFT) | #define L2_PAGE_SIZE (1UL<<L2_PAGE_SIZE_SHIFT) | ||||
#define L2_PAGE_MASK (L2_PAGE_SIZE-1) | #define L2_PAGE_MASK (L2_PAGE_SIZE-1) | ||||
#define L3_PAGE_SIZE_SHIFT 21 | #define L3_PAGE_SIZE_SHIFT 21 | ||||
#define L3_PAGE_SIZE (1UL<<L3_PAGE_SIZE_SHIFT) | #define L3_PAGE_SIZE (1UL<<L3_PAGE_SIZE_SHIFT) | ||||
#define L3_PAGE_MASK (L3_PAGE_SIZE-1) | #define L3_PAGE_MASK (L3_PAGE_SIZE-1) | ||||
/* | |||||
* On PowerPC64, make PDRSHIFT cover a 16MB superpage (HPT). | |||||
* This allows a single PV lock to protect all pages of a superpage. | |||||
* This is not needed with Radix MMU, but should do no harm either. | |||||
*/ | |||||
#ifdef __powerpc64__ | |||||
#define PDRSHIFT 24 | |||||
#endif | |||||
#define MAXPAGESIZES 3 /* maximum number of supported page sizes */ | #define MAXPAGESIZES 3 /* maximum number of supported page sizes */ | ||||
#define RELOCATABLE_KERNEL 1 /* kernel may relocate during startup */ | #define RELOCATABLE_KERNEL 1 /* kernel may relocate during startup */ | ||||
#ifndef KSTACK_PAGES | #ifndef KSTACK_PAGES | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#define KSTACK_PAGES 12 /* includes pcb */ | #define KSTACK_PAGES 12 /* includes pcb */ | ||||
#else | #else | ||||
Show All 29 Lines |