Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/include/param.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
#define KSTACK_PAGES 12 /* includes pcb */ | #define KSTACK_PAGES 12 /* includes pcb */ | ||||
#else | #else | ||||
#define KSTACK_PAGES 4 /* includes pcb */ | #define KSTACK_PAGES 4 /* includes pcb */ | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ | #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ | ||||
#define USPACE (kstack_pages * PAGE_SIZE) /* total size of pcb */ | #define USPACE (kstack_pages * PAGE_SIZE) /* total size of pcb */ | ||||
#define COPYFAULT 0x1 | |||||
#define FUSUFAULT 0x2 | |||||
/* | /* | ||||
* Mach derived conversion macros | * Mach derived conversion macros | ||||
*/ | */ | ||||
#define trunc_page(x) ((x) & ~(PAGE_MASK)) | #define trunc_page(x) ((x) & ~(PAGE_MASK)) | ||||
#define round_page(x) (((x) + PAGE_MASK) & ~PAGE_MASK) | #define round_page(x) (((x) + PAGE_MASK) & ~PAGE_MASK) | ||||
#define trunc_2mpage(x) ((unsigned long)(x) & ~L3_PAGE_MASK) | #define trunc_2mpage(x) ((unsigned long)(x) & ~L3_PAGE_MASK) | ||||
#define round_2mpage(x) ((((unsigned long)(x)) + L3_PAGE_MASK) & ~L3_PAGE_MASK) | #define round_2mpage(x) ((((unsigned long)(x)) + L3_PAGE_MASK) & ~L3_PAGE_MASK) | ||||
#define trunc_1gpage(x) ((unsigned long)(x) & ~L2_PAGE_MASK) | #define trunc_1gpage(x) ((unsigned long)(x) & ~L2_PAGE_MASK) | ||||
Show All 12 Lines |