diff options
Diffstat (limited to 'arch/powerpc/include/asm/mmu-book3e.h')
-rw-r--r-- | arch/powerpc/include/asm/mmu-book3e.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmu-book3e.h b/arch/powerpc/include/asm/mmu-book3e.h index 3ea0f9a259d8..0260ea5ec3c2 100644 --- a/arch/powerpc/include/asm/mmu-book3e.h +++ b/arch/powerpc/include/asm/mmu-book3e.h | |||
@@ -66,6 +66,7 @@ | |||
66 | #define MAS2_M 0x00000004 | 66 | #define MAS2_M 0x00000004 |
67 | #define MAS2_G 0x00000002 | 67 | #define MAS2_G 0x00000002 |
68 | #define MAS2_E 0x00000001 | 68 | #define MAS2_E 0x00000001 |
69 | #define MAS2_WIMGE_MASK 0x0000001f | ||
69 | #define MAS2_EPN_MASK(size) (~0 << (size + 10)) | 70 | #define MAS2_EPN_MASK(size) (~0 << (size + 10)) |
70 | #define MAS2_VAL(addr, size, flags) ((addr) & MAS2_EPN_MASK(size) | (flags)) | 71 | #define MAS2_VAL(addr, size, flags) ((addr) & MAS2_EPN_MASK(size) | (flags)) |
71 | 72 | ||
@@ -80,6 +81,7 @@ | |||
80 | #define MAS3_SW 0x00000004 | 81 | #define MAS3_SW 0x00000004 |
81 | #define MAS3_UR 0x00000002 | 82 | #define MAS3_UR 0x00000002 |
82 | #define MAS3_SR 0x00000001 | 83 | #define MAS3_SR 0x00000001 |
84 | #define MAS3_BAP_MASK 0x0000003f | ||
83 | #define MAS3_SPSIZE 0x0000003e | 85 | #define MAS3_SPSIZE 0x0000003e |
84 | #define MAS3_SPSIZE_SHIFT 1 | 86 | #define MAS3_SPSIZE_SHIFT 1 |
85 | 87 | ||
@@ -212,6 +214,11 @@ typedef struct { | |||
212 | unsigned int id; | 214 | unsigned int id; |
213 | unsigned int active; | 215 | unsigned int active; |
214 | unsigned long vdso_base; | 216 | unsigned long vdso_base; |
217 | #ifdef CONFIG_PPC_MM_SLICES | ||
218 | u64 low_slices_psize; /* SLB page size encodings */ | ||
219 | u64 high_slices_psize; /* 4 bits per slice for now */ | ||
220 | u16 user_psize; /* page size index */ | ||
221 | #endif | ||
215 | } mm_context_t; | 222 | } mm_context_t; |
216 | 223 | ||
217 | /* Page size definitions, common between 32 and 64-bit | 224 | /* Page size definitions, common between 32 and 64-bit |