diff options
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index ccdd8de3c558..2d6d133c0edd 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -409,6 +409,18 @@ config PPC_HAS_HASH_64K | |||
409 | depends on PPC64 | 409 | depends on PPC64 |
410 | default n | 410 | default n |
411 | 411 | ||
412 | config STDBINUTILS | ||
413 | bool "Using standard binutils settings" | ||
414 | depends on 44x | ||
415 | default y | ||
416 | help | ||
417 | Turning this option off allows you to select 256KB PAGE_SIZE on 44x. | ||
418 | Note, that kernel will be able to run only those applications, | ||
419 | which had been compiled using binutils later than 2.17.50.0.3 with | ||
420 | '-zmax-page-size' set to 256K (the default is 64K). Or, if using | ||
421 | the older binutils, you can patch them with a trivial patch, which | ||
422 | changes the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000. | ||
423 | |||
412 | choice | 424 | choice |
413 | prompt "Page size" | 425 | prompt "Page size" |
414 | default PPC_4K_PAGES | 426 | default PPC_4K_PAGES |
@@ -444,6 +456,19 @@ config PPC_64K_PAGES | |||
444 | bool "64k page size" if 44x || PPC_STD_MMU_64 | 456 | bool "64k page size" if 44x || PPC_STD_MMU_64 |
445 | select PPC_HAS_HASH_64K if PPC_STD_MMU_64 | 457 | select PPC_HAS_HASH_64K if PPC_STD_MMU_64 |
446 | 458 | ||
459 | config PPC_256K_PAGES | ||
460 | bool "256k page size" if 44x | ||
461 | depends on !STDBINUTILS && (!SHMEM || BROKEN) | ||
462 | help | ||
463 | Make the page size 256k. | ||
464 | |||
465 | As the ELF standard only requires alignment to support page | ||
466 | sizes up to 64k, you will need to compile all of your user | ||
467 | space applications with a non-standard binutils settings | ||
468 | (see the STDBINUTILS description for details). | ||
469 | |||
470 | Say N unless you know what you are doing. | ||
471 | |||
447 | endchoice | 472 | endchoice |
448 | 473 | ||
449 | config FORCE_MAX_ZONEORDER | 474 | config FORCE_MAX_ZONEORDER |
@@ -456,6 +481,8 @@ config FORCE_MAX_ZONEORDER | |||
456 | default "9" if PPC_STD_MMU_32 && PPC_16K_PAGES | 481 | default "9" if PPC_STD_MMU_32 && PPC_16K_PAGES |
457 | range 7 64 if PPC_STD_MMU_32 && PPC_64K_PAGES | 482 | range 7 64 if PPC_STD_MMU_32 && PPC_64K_PAGES |
458 | default "7" if PPC_STD_MMU_32 && PPC_64K_PAGES | 483 | default "7" if PPC_STD_MMU_32 && PPC_64K_PAGES |
484 | range 5 64 if PPC_STD_MMU_32 && PPC_256K_PAGES | ||
485 | default "5" if PPC_STD_MMU_32 && PPC_256K_PAGES | ||
459 | range 11 64 | 486 | range 11 64 |
460 | default "11" | 487 | default "11" |
461 | help | 488 | help |