Lines Matching +full:0 +full:- +full:9 +full:a +full:- +full:e
19 #include <asm-generic/pgtable-nopmd.h>
26 * Regarding 32-bit MIPS huge page support (and the tradeoff it entails):
28 * We use the same huge page sizes as 64-bit MIPS. Assuming a 4KB page size,
29 * our 2-level table layout would normally have a PGD entry cover a contiguous
30 * 4MB virtual address region (pointing to a 4KB PTE page of 1,024 32-bit pte_t
31 * pointers, each pointing to a 4KB physical page). The problem is that 4MB,
32 * spanning both halves of a TLB EntryLo0,1 pair, requires 2MB hardware page
35 * pointers a PTE page holds, making its last half go to waste. Correspondingly,
37 * increases to match 64-bit MIPS, but PTE lookups remain CPU cache-friendly.
39 * NOTE: We don't yet support huge pages if extended-addressing is enabled
40 * (i.e. EVA, XPA, 36-bit Alchemy/Netlogic).
46 * - add_temporary_entry() add a temporary TLB entry. We use TLB entries
56 * Basically we have the same two-level (which is the logical three level
58 * when we have proper page coloring support we can have a 1% quicker
59 * tlb refill handling mechanism, but for now it is a bit slower but
63 /* PGDIR_SHIFT determines what a third-level page table entry can map */
65 # define PGDIR_SHIFT (2 * PAGE_SHIFT - PTE_T_LOG2 - 1)
67 # define PGDIR_SHIFT (2 * PAGE_SHIFT - PTE_T_LOG2)
71 #define PGDIR_MASK (~(PGDIR_SIZE-1))
74 * Entries per page directory level: we use two-level, so
78 # define __PGD_TABLE_ORDER (32 - 3 * PAGE_SHIFT + PGD_T_LOG2 + PTE_T_LOG2 + 1)
80 # define __PGD_TABLE_ORDER (32 - 3 * PAGE_SHIFT + PGD_T_LOG2 + PTE_T_LOG2)
83 #define PGD_TABLE_ORDER (__PGD_TABLE_ORDER >= 0 ? __PGD_TABLE_ORDER : 0)
94 #define USER_PTRS_PER_PGD (0x80000000UL/PGDIR_SIZE)
98 #define PKMAP_END ((FIXADDR_START) & ~((LAST_PKMAP << PAGE_SHIFT)-1))
99 #define PKMAP_BASE (PKMAP_END - PAGE_SIZE * LAST_PKMAP)
102 # define VMALLOC_END (PKMAP_BASE-2*PAGE_SIZE)
104 # define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE)
108 #define pte_ERROR(e) \ argument
109 printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e))
111 #define pte_ERROR(e) \ argument
112 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
114 #define pgd_ERROR(e) \ argument
115 printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
134 return 0; in pmd_bad()
140 return 0; in pmd_bad()
178 pte.pte_high = (pfn << 6) | (pgprot_val(prot) & 0x3f); in pfn_pte()
204 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
205 * <----------- offset ------------> < type -> V G E 0 0 0 0 0 0 P
207 * E is the exclusive marker that is not stored in swap entries.
211 #define __swp_type(x) (((x).val >> 10) & 0x1f)
213 #define __swp_entry(type, offset) ((swp_entry_t) { (((type) & 0x1f) << 10) | ((offset) << 15) })
228 * 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2
229 * 0 0 0 0 0 0 E P <------------------ zeroes ------------------->
232 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
233 * <----------------- offset ------------------> < type -> V G 0 0
235 * E is the exclusive marker that is not stored in swap entries.
239 #define __swp_type(x) (((x).val >> 4) & 0x1f)
240 #define __swp_offset(x) ((x).val >> 9)
241 #define __swp_entry(type, offset) ((swp_entry_t) { (((type) & 0x1f) << 4) | ((offset) << 9) })
243 #define __swp_entry_to_pte(x) ((pte_t) { 0, (x).val })
257 * 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2
258 * <------------------ zeroes -------------------> E P 0 0 0 0 0 0
261 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
262 * <------------------- offset --------------------> < type -> V G
264 * E is the exclusive marker that is not stored in swap entries.
268 #define __swp_type(x) (((x).val >> 2) & 0x1f)
270 #define __swp_entry(type, offset) ((swp_entry_t) { (((type) & 0x1f) << 2) | ((offset) << 7) })
272 #define __swp_entry_to_pte(x) ((pte_t) { 0, (x).val })
285 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
286 * <------------- offset --------------> < type -> 0 0 0 0 0 0 E P
288 * E is the exclusive marker that is not stored in swap entries.
292 #define __swp_type(x) (((x).val >> 8) & 0x1f)