Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/include/param.h
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* CACHE_LINE_SIZE is the compile-time maximum cache line size for an | * CACHE_LINE_SIZE is the compile-time maximum cache line size for an | ||||
* architecture. It should be used with appropriate caution. | * architecture. It should be used with appropriate caution. | ||||
*/ | */ | ||||
#define CACHE_LINE_SHIFT 6 | #define CACHE_LINE_SHIFT 6 | ||||
#define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT) | #define CACHE_LINE_SIZE (1 << CACHE_LINE_SHIFT) | ||||
#define PAGE_SHIFT 12 | #define PAGE_SHIFT 12 | ||||
#ifndef PAGE_SIZE | |||||
#define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */ | #define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */ | ||||
#endif | |||||
#define PAGE_MASK (PAGE_SIZE - 1) | #define PAGE_MASK (PAGE_SIZE - 1) | ||||
#define PDR_SHIFT 20 /* log2(NBPDR) */ | #define PDR_SHIFT 20 /* log2(NBPDR) */ | ||||
#define NBPDR (1 << PDR_SHIFT) | #define NBPDR (1 << PDR_SHIFT) | ||||
#define PDRMASK (NBPDR - 1) | #define PDRMASK (NBPDR - 1) | ||||
#define NPDEPG (1 << (32 - PDR_SHIFT)) | #define NPDEPG (1 << (32 - PDR_SHIFT)) | ||||
#define MAXPAGESIZES 2 /* maximum number of supported page sizes */ | #define MAXPAGESIZES 2 /* maximum number of supported page sizes */ | ||||
#ifndef KSTACK_PAGES | #ifndef KSTACK_PAGES | ||||
#define KSTACK_PAGES 2 | #define KSTACK_PAGES 2 | ||||
#endif /* !KSTACK_PAGES */ | #endif /* !KSTACK_PAGES */ | ||||
#ifndef FPCONTEXTSIZE | #ifndef FPCONTEXTSIZE | ||||
#define FPCONTEXTSIZE (0x100) | #define FPCONTEXTSIZE (0x100) | ||||
#endif | #endif | ||||
#ifndef KSTACK_GUARD_PAGES | #ifndef KSTACK_GUARD_PAGES | ||||
#define KSTACK_GUARD_PAGES 1 | #define KSTACK_GUARD_PAGES 1 | ||||
#endif /* !KSTACK_GUARD_PAGES */ | #endif /* !KSTACK_GUARD_PAGES */ | ||||
#define AUX_RESCUE_STACK_SIZE PAGE_SIZE | |||||
#define USPACE_SVC_STACK_TOP (kstack_pages * PAGE_SIZE) | #define USPACE_SVC_STACK_TOP (kstack_pages * PAGE_SIZE) | ||||
/* | /* | ||||
* 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) | ||||
Show All 12 Lines |