@@ -4,26 +4,37 @@ config MIPS
44 # Horrible source of confusion. Die, die, die ...
55 select EMBEDDED
66
7- config MIPS64
8- bool "64-bit kernel"
7+ mainmenu "Linux/MIPS Kernel Configuration"
8+
9+ source "init/Kconfig"
10+
11+ menu "Kernel type"
12+
13+ choice
14+
15+ prompt "Kernel code model"
916 help
10- Select this option if you want to build a 64-bit kernel. You should
11- only select this option if you have hardware that actually has a
12- 64-bit processor and if your application will actually benefit from
13- 64-bit processing, otherwise say N. You must say Y for kernels for
14- SGI IP27 (Origin 200 and 2000) and SGI IP32 (O2). If in doubt say N.
17+ You should only select this option if you have a workload that
18+ actually benefits from 64-bit processing or if your machine has
19+ large memory. You will only be presented a single option in this
20+ menu if your system does not support both 32-bit and 64-bit kernels.
1521
16- config 64BIT
17- def_bool MIPS64
22+ config 32BIT
23+ bool "32-bit kernel"
24+ depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
25+ select TRAD_SIGNALS
26+ help
27+ Select this option if you want to build a 32-bit kernel.
1828
19- config MIPS32
20- bool
21- depends on MIPS64 = 'n'
22- default y
29+ config 64BIT
30+ bool "64-bit kernel"
31+ depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
32+ help
33+ Select this option if you want to build a 64-bit kernel.
2334
24- mainmenu "Linux/MIPS Kernel Configuration"
35+ endchoice
2536
26- source "init/Kconfig"
37+ endmenu
2738
2839menu "Machine selection"
2940
@@ -155,7 +166,7 @@ config VRC4173
155166
156167config TOSHIBA_JMR3927
157168 bool "Support for Toshiba JMR-TX3927 board"
158- depends on MIPS32
169+ depends on 32BIT
159170 select DMA_NONCOHERENT
160171 select HW_HAS_PCI
161172 select SWAP_IO_SPACE
@@ -173,7 +184,7 @@ config MACH_DECSTATION
173184 select BOOT_ELF32
174185 select DMA_NONCOHERENT
175186 select IRQ_CPU
176- depends on MIPS32 || EXPERIMENTAL
187+ depends on 32BIT || EXPERIMENTAL
177188 ---help---
178189 This enables support for DEC's MIPS based workstations. For details
179190 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
@@ -480,7 +491,7 @@ config SGI_IP22
480491
481492config SGI_IP27
482493 bool "Support for SGI IP27 (Origin200/2000)"
483- depends on MIPS64
494+ depends on 64BIT
484495 select ARC
485496 select ARC64
486497 select DMA_IP27
@@ -548,7 +559,7 @@ config REPLICATE_EXHANDLERS
548559
549560config SGI_IP32
550561 bool "Support for SGI IP32 (O2) (EXPERIMENTAL)"
551- depends on MIPS64 && EXPERIMENTAL
562+ depends on 64BIT && EXPERIMENTAL
552563 select ARC
553564 select ARC32
554565 select BOOT_ELF32
@@ -562,7 +573,7 @@ config SGI_IP32
562573 If you want this kernel to run on SGI O2 workstation, say Y here.
563574
564575config SOC_AU1X00
565- depends on MIPS32
576+ depends on 32BIT
566577 bool "Support for AMD/Alchemy Au1X00 SOCs"
567578
568579choice
@@ -902,7 +913,7 @@ config SNI_RM200_PCI
902913
903914config TOSHIBA_RBTX4927
904915 bool "Support for Toshiba TBTX49[23]7 board"
905- depends on MIPS32
916+ depends on 32BIT
906917 select DMA_NONCOHERENT
907918 select HAS_TXX9_SERIAL
908919 select HW_HAS_PCI
@@ -1171,7 +1182,7 @@ config CPU_R3000
11711182
11721183config CPU_TX39XX
11731184 bool "R39XX"
1174- depends on MIPS32
1185+ depends on 32BIT
11751186
11761187config CPU_VR41XX
11771188 bool "R41xx"
@@ -1205,7 +1216,7 @@ config CPU_R5432
12051216
12061217config CPU_R6000
12071218 bool "R6000"
1208- depends on MIPS32 && EXPERIMENTAL
1219+ depends on 32BIT && EXPERIMENTAL
12091220 help
12101221 MIPS Technologies R6000 and R6000A series processors. Note these
12111222 processors are extremly rare and the support for them is incomplete.
@@ -1217,7 +1228,7 @@ config CPU_NEVADA
12171228
12181229config CPU_R8000
12191230 bool "R8000"
1220- depends on MIPS64 && EXPERIMENTAL
1231+ depends on 64BIT && EXPERIMENTAL
12211232 help
12221233 MIPS Technologies R8000 processors. Note these processors are
12231234 uncommon and the support for them is incomplete.
@@ -1330,11 +1341,11 @@ config SB1_PASS_2_1_WORKAROUNDS
13301341
13311342config 64BIT_PHYS_ADDR
13321343 bool "Support for 64-bit physical address space"
1333- depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && MIPS32
1344+ depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && 32BIT
13341345
13351346config CPU_ADVANCED
13361347 bool "Override CPU Options"
1337- depends on MIPS32
1348+ depends on 32BIT
13381349 help
13391350 Saying yes here allows you to select support for various features
13401351 your CPU may or may not have. Most people should say N here.
@@ -1388,7 +1399,7 @@ config CPU_HAS_SYNC
13881399#
13891400config HIGHMEM
13901401 bool "High Memory Support"
1391- depends on MIPS32 && (CPU_R3000 || CPU_SB1 || CPU_R7000 || CPU_RM9000 || CPU_R10000) && !(MACH_DECSTATION || MOMENCO_JAGUAR_ATX)
1402+ depends on 32BIT && (CPU_R3000 || CPU_SB1 || CPU_R7000 || CPU_RM9000 || CPU_R10000) && !(MACH_DECSTATION || MOMENCO_JAGUAR_ATX)
13921403
13931404config ARCH_FLATMEM_ENABLE
13941405 def_bool y
@@ -1448,7 +1459,7 @@ config RTC_DS1742
14481459
14491460config MIPS_INSANE_LARGE
14501461 bool "Support for large 64-bit configurations"
1451- depends on CPU_R10000 && MIPS64
1462+ depends on CPU_R10000 && 64BIT
14521463 help
14531464 MIPS R10000 does support a 44 bit / 16TB address space as opposed to
14541465 previous 64-bit processors which only supported 40 bit / 1TB. If you
@@ -1549,11 +1560,11 @@ source "fs/Kconfig.binfmt"
15491560
15501561config TRAD_SIGNALS
15511562 bool
1552- default y if MIPS32
1563+ default y if 32BIT
15531564
15541565config BUILD_ELF64
15551566 bool "Use 64-bit ELF format for building"
1556- depends on MIPS64
1567+ depends on 64BIT
15571568 help
15581569 A 64-bit kernel is usually built using the 64-bit ELF binary object
15591570 format as it's one that allows arbitrary 64-bit constructs. For
@@ -1568,11 +1579,11 @@ config BUILD_ELF64
15681579
15691580config BINFMT_IRIX
15701581 bool "Include IRIX binary compatibility"
1571- depends on !CPU_LITTLE_ENDIAN && MIPS32 && BROKEN
1582+ depends on !CPU_LITTLE_ENDIAN && 32BIT && BROKEN
15721583
15731584config MIPS32_COMPAT
15741585 bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
1575- depends on MIPS64
1586+ depends on 64BIT
15761587 help
15771588 Select this option if you want Linux/MIPS 32-bit binary
15781589 compatibility. Since all software available for Linux/MIPS is
0 commit comments