diff options
Diffstat (limited to 'arch/powerpc/mm/dump_linuxpagetables.c')
-rw-r--r-- | arch/powerpc/mm/dump_linuxpagetables.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/arch/powerpc/mm/dump_linuxpagetables.c b/arch/powerpc/mm/dump_linuxpagetables.c index c2e7dea59490..876e2a3c79f2 100644 --- a/arch/powerpc/mm/dump_linuxpagetables.c +++ b/arch/powerpc/mm/dump_linuxpagetables.c | |||
@@ -112,26 +112,25 @@ struct flag_info { | |||
112 | 112 | ||
113 | static const struct flag_info flag_array[] = { | 113 | static const struct flag_info flag_array[] = { |
114 | { | 114 | { |
115 | #ifdef CONFIG_PPC_BOOK3S_64 | 115 | .mask = _PAGE_USER | _PAGE_PRIVILEGED, |
116 | .mask = _PAGE_PRIVILEGED, | ||
117 | .val = 0, | ||
118 | #else | ||
119 | .mask = _PAGE_USER, | ||
120 | .val = _PAGE_USER, | 116 | .val = _PAGE_USER, |
121 | #endif | ||
122 | .set = "user", | 117 | .set = "user", |
123 | .clear = " ", | 118 | .clear = " ", |
124 | }, { | 119 | }, { |
125 | #if _PAGE_RO == 0 | 120 | .mask = _PAGE_RW | _PAGE_RO | _PAGE_NA, |
126 | .mask = _PAGE_RW, | ||
127 | .val = _PAGE_RW, | 121 | .val = _PAGE_RW, |
128 | #else | ||
129 | .mask = _PAGE_RO, | ||
130 | .val = 0, | ||
131 | #endif | ||
132 | .set = "rw", | 122 | .set = "rw", |
133 | .clear = "ro", | ||
134 | }, { | 123 | }, { |
124 | .mask = _PAGE_RW | _PAGE_RO | _PAGE_NA, | ||
125 | .val = _PAGE_RO, | ||
126 | .set = "ro", | ||
127 | }, { | ||
128 | #if _PAGE_NA != 0 | ||
129 | .mask = _PAGE_RW | _PAGE_RO | _PAGE_NA, | ||
130 | .val = _PAGE_RO, | ||
131 | .set = "na", | ||
132 | }, { | ||
133 | #endif | ||
135 | .mask = _PAGE_EXEC, | 134 | .mask = _PAGE_EXEC, |
136 | .val = _PAGE_EXEC, | 135 | .val = _PAGE_EXEC, |
137 | .set = " X ", | 136 | .set = " X ", |
@@ -213,7 +212,7 @@ static const struct flag_info flag_array[] = { | |||
213 | .val = H_PAGE_4K_PFN, | 212 | .val = H_PAGE_4K_PFN, |
214 | .set = "4K_pfn", | 213 | .set = "4K_pfn", |
215 | }, { | 214 | }, { |
216 | #endif | 215 | #else /* CONFIG_PPC_64K_PAGES */ |
217 | .mask = H_PAGE_F_GIX, | 216 | .mask = H_PAGE_F_GIX, |
218 | .val = H_PAGE_F_GIX, | 217 | .val = H_PAGE_F_GIX, |
219 | .set = "f_gix", | 218 | .set = "f_gix", |
@@ -224,14 +223,11 @@ static const struct flag_info flag_array[] = { | |||
224 | .val = H_PAGE_F_SECOND, | 223 | .val = H_PAGE_F_SECOND, |
225 | .set = "f_second", | 224 | .set = "f_second", |
226 | }, { | 225 | }, { |
226 | #endif /* CONFIG_PPC_64K_PAGES */ | ||
227 | #endif | 227 | #endif |
228 | .mask = _PAGE_SPECIAL, | 228 | .mask = _PAGE_SPECIAL, |
229 | .val = _PAGE_SPECIAL, | 229 | .val = _PAGE_SPECIAL, |
230 | .set = "special", | 230 | .set = "special", |
231 | }, { | ||
232 | .mask = _PAGE_SHARED, | ||
233 | .val = _PAGE_SHARED, | ||
234 | .set = "shared", | ||
235 | } | 231 | } |
236 | }; | 232 | }; |
237 | 233 | ||