/* * We always define HW_PAGE_SHIFT to 12 as use of 64K pages remains Linux * specific, every notion of page number shared with the firmware, TCEs, * iommu, etc... still uses a page size of 4K.
*/ #define HW_PAGE_SHIFT 12 #define HW_PAGE_SIZE (ASM_CONST(1) << HW_PAGE_SHIFT) #define HW_PAGE_MASK (~(HW_PAGE_SIZE-1))
/* * PAGE_FACTOR is the number of bits factor between PAGE_SHIFT and * HW_PAGE_SHIFT, that is 4K pages.
*/ #define PAGE_FACTOR (PAGE_SHIFT - HW_PAGE_SHIFT)
/* * Some verisions of gcc use multiply instructions to * calculate the offsets so lets give it a hand to * do better.
*/
onex = ppc64_caches.l1d.block_size;
twox = onex << 1;
fourx = onex << 2;
eightx = onex << 3;
/* * This is the default if a program doesn't have a PT_GNU_STACK * program header entry. The PPC64 ELF ABI has a non executable stack * stack by default, so in the absence of a PT_GNU_STACK program header * we turn execute permission off.
*/ #define VM_STACK_DEFAULT_FLAGS32 VM_DATA_FLAGS_EXEC #define VM_STACK_DEFAULT_FLAGS64 VM_DATA_FLAGS_NON_EXEC
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.