Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/param.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
#else | #else | ||||
#define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ | #define KSTACK_PAGES 4 /* pages of kernel stack (with 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 PCPU_PAGES 1 | #define PCPU_PAGES 1 | ||||
#ifdef PERTHREAD_SSP | |||||
#define NO_PERTHREAD_SSP __nostackprotector | |||||
andrew: This is missing the `#else` case. | |||||
#endif | |||||
/* | /* | ||||
* Mach derived conversion macros | * Mach derived conversion macros | ||||
*/ | */ | ||||
#define round_page(x) (((unsigned long)(x) + PAGE_MASK) & ~PAGE_MASK) | #define round_page(x) (((unsigned long)(x) + PAGE_MASK) & ~PAGE_MASK) | ||||
#define trunc_page(x) ((unsigned long)(x) & ~PAGE_MASK) | #define trunc_page(x) ((unsigned long)(x) & ~PAGE_MASK) | ||||
#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) | #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) | ||||
#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT) | #define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT) | ||||
#define arm64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT) | #define arm64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT) | ||||
#define arm64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT) | #define arm64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT) | ||||
#define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024)) | #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024)) | ||||
#endif /* !_MACHINE_PARAM_H_ */ | #endif /* !_MACHINE_PARAM_H_ */ |
This is missing the #else case.