diff options
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r-- | arch/sh/mm/Kconfig | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 27463e26a7b8..88e9663fc9fc 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -235,13 +235,22 @@ config MEMORY_SIZE | |||
235 | 235 | ||
236 | config 32BIT | 236 | config 32BIT |
237 | bool "Support 32-bit physical addressing through PMB" | 237 | bool "Support 32-bit physical addressing through PMB" |
238 | depends on CPU_SH4A && MMU | 238 | depends on CPU_SH4A && MMU && (!X2TLB || BROKEN) |
239 | default y | 239 | default y |
240 | help | 240 | help |
241 | If you say Y here, physical addressing will be extended to | 241 | If you say Y here, physical addressing will be extended to |
242 | 32-bits through the SH-4A PMB. If this is not set, legacy | 242 | 32-bits through the SH-4A PMB. If this is not set, legacy |
243 | 29-bit physical addressing will be used. | 243 | 29-bit physical addressing will be used. |
244 | 244 | ||
245 | config X2TLB | ||
246 | bool "Enable extended TLB mode" | ||
247 | depends on CPU_SUBTYPE_SH7785 && MMU && EXPERIMENTAL | ||
248 | help | ||
249 | Selecting this option will enable the extended mode of the SH-X2 | ||
250 | TLB. For legacy SH-X behaviour and interoperability, say N. For | ||
251 | all of the fun new features and a willingless to submit bug reports, | ||
252 | say Y. | ||
253 | |||
245 | config VSYSCALL | 254 | config VSYSCALL |
246 | bool "Support vsyscall page" | 255 | bool "Support vsyscall page" |
247 | depends on MMU | 256 | depends on MMU |
@@ -256,16 +265,52 @@ config VSYSCALL | |||
256 | (the default value) say Y. | 265 | (the default value) say Y. |
257 | 266 | ||
258 | choice | 267 | choice |
268 | prompt "Kernel page size" | ||
269 | default PAGE_SIZE_4KB | ||
270 | |||
271 | config PAGE_SIZE_4KB | ||
272 | bool "4kB" | ||
273 | help | ||
274 | This is the default page size used by all SuperH CPUs. | ||
275 | |||
276 | config PAGE_SIZE_8KB | ||
277 | bool "8kB" | ||
278 | depends on EXPERIMENTAL && X2TLB | ||
279 | help | ||
280 | This enables 8kB pages as supported by SH-X2 and later MMUs. | ||
281 | |||
282 | config PAGE_SIZE_64KB | ||
283 | bool "64kB" | ||
284 | depends on EXPERIMENTAL && CPU_SH4 | ||
285 | help | ||
286 | This enables support for 64kB pages, possible on all SH-4 | ||
287 | CPUs and later. Highly experimental, not recommended. | ||
288 | |||
289 | endchoice | ||
290 | |||
291 | choice | ||
259 | prompt "HugeTLB page size" | 292 | prompt "HugeTLB page size" |
260 | depends on HUGETLB_PAGE && CPU_SH4 && MMU | 293 | depends on HUGETLB_PAGE && CPU_SH4 && MMU |
261 | default HUGETLB_PAGE_SIZE_64K | 294 | default HUGETLB_PAGE_SIZE_64K |
262 | 295 | ||
263 | config HUGETLB_PAGE_SIZE_64K | 296 | config HUGETLB_PAGE_SIZE_64K |
264 | bool "64K" | 297 | bool "64kB" |
298 | |||
299 | config HUGETLB_PAGE_SIZE_256K | ||
300 | bool "256kB" | ||
301 | depends on X2TLB | ||
265 | 302 | ||
266 | config HUGETLB_PAGE_SIZE_1MB | 303 | config HUGETLB_PAGE_SIZE_1MB |
267 | bool "1MB" | 304 | bool "1MB" |
268 | 305 | ||
306 | config HUGETLB_PAGE_SIZE_4MB | ||
307 | bool "4MB" | ||
308 | depends on X2TLB | ||
309 | |||
310 | config HUGETLB_PAGE_SIZE_64MB | ||
311 | bool "64MB" | ||
312 | depends on X2TLB | ||
313 | |||
269 | endchoice | 314 | endchoice |
270 | 315 | ||
271 | source "mm/Kconfig" | 316 | source "mm/Kconfig" |