Go to the documentation of this file. 1 #ifndef _ASM_POWERPC_PAGE_32_H
2 #define _ASM_POWERPC_PAGE_32_H
4 #if defined(CONFIG_PHYSICAL_ALIGN) && (CONFIG_PHYSICAL_START != 0)
5 #if (CONFIG_PHYSICAL_START % CONFIG_PHYSICAL_ALIGN) != 0
6 #error "CONFIG_PHYSICAL_START must be a multiple of CONFIG_PHYSICAL_ALIGN"
10 #define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
12 #ifdef CONFIG_NOT_COHERENT_CACHE
13 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
16 #ifdef CONFIG_PTE_64BIT
17 #define PTE_FLAGS_OFFSET 4
19 #define PTE_FLAGS_OFFSET 0
22 #ifdef CONFIG_PPC_256K_PAGES
23 #define PTE_SHIFT (PAGE_SHIFT - PTE_T_LOG2 - 2)
25 #define PTE_SHIFT (PAGE_SHIFT - PTE_T_LOG2)
33 #ifdef CONFIG_PTE_64BIT
46 #define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1)
47 #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1)