Skip to content

Commit 875d43e

Browse files
ralfbaechleLinus Torvalds
authored andcommitted
[PATCH] mips: clean up 32/64-bit configuration
Start cleaning 32-bit vs. 64-bit configuration. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 63fb6fd commit 875d43e

110 files changed

Lines changed: 330 additions & 319 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/mips/Kconfig‎

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2839
menu "Machine selection"
2940

@@ -155,7 +166,7 @@ config VRC4173
155166

156167
config 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

481492
config 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

549560
config 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

564575
config SOC_AU1X00
565-
depends on MIPS32
576+
depends on 32BIT
566577
bool "Support for AMD/Alchemy Au1X00 SOCs"
567578

568579
choice
@@ -902,7 +913,7 @@ config SNI_RM200_PCI
902913

903914
config 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

11721183
config CPU_TX39XX
11731184
bool "R39XX"
1174-
depends on MIPS32
1185+
depends on 32BIT
11751186

11761187
config CPU_VR41XX
11771188
bool "R41xx"
@@ -1205,7 +1216,7 @@ config CPU_R5432
12051216

12061217
config 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

12181229
config 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

13311342
config 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

13351346
config 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
#
13891400
config 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

13931404
config ARCH_FLATMEM_ENABLE
13941405
def_bool y
@@ -1448,7 +1459,7 @@ config RTC_DS1742
14481459

14491460
config 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

15501561
config TRAD_SIGNALS
15511562
bool
1552-
default y if MIPS32
1563+
default y if 32BIT
15531564

15541565
config 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

15691580
config 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

15731584
config 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

‎arch/mips/Makefile‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ else
3737
64bit-emul = elf64btsmip
3838
endif
3939

40-
ifdef CONFIG_MIPS32
40+
ifdef CONFIG_32BIT
4141
gcc-abi = 32
4242
tool-prefix = $(32bit-tool-prefix)
4343
UTS_MACHINE := mips
4444
endif
45-
ifdef CONFIG_MIPS64
45+
ifdef CONFIG_64BIT
4646
gcc-abi = 64
4747
tool-prefix = $(64bit-tool-prefix)
4848
UTS_MACHINE := mips64
@@ -63,7 +63,7 @@ ld-emul = $(32bit-emul)
6363
vmlinux-32 = vmlinux
6464
vmlinux-64 = vmlinux.64
6565

66-
cflags-$(CONFIG_MIPS64) += $(call cc-option,-mno-explicit-relocs)
66+
cflags-$(CONFIG_64BIT) += $(call cc-option,-mno-explicit-relocs)
6767
endif
6868

6969
#
@@ -524,10 +524,10 @@ load-$(CONFIG_TANBAC_TB022X) += 0xffffffff80000000
524524
#
525525
core-$(CONFIG_SGI_IP22) += arch/mips/sgi-ip22/
526526
cflags-$(CONFIG_SGI_IP22) += -Iinclude/asm-mips/mach-ip22
527-
ifdef CONFIG_MIPS32
527+
ifdef CONFIG_32BIT
528528
load-$(CONFIG_SGI_IP22) += 0xffffffff88002000
529529
endif
530-
ifdef CONFIG_MIPS64
530+
ifdef CONFIG_64BIT
531531
load-$(CONFIG_SGI_IP22) += 0xffffffff88004000
532532
endif
533533

@@ -632,7 +632,7 @@ load-$(CONFIG_TOSHIBA_RBTX4927) += 0xffffffff80020000
632632
cflags-y += -Iinclude/asm-mips/mach-generic
633633
drivers-$(CONFIG_PCI) += arch/mips/pci/
634634

635-
ifdef CONFIG_MIPS32
635+
ifdef CONFIG_32BIT
636636
ifdef CONFIG_CPU_LITTLE_ENDIAN
637637
JIFFIES = jiffies_64
638638
else
@@ -664,8 +664,8 @@ CPPFLAGS_vmlinux.lds := \
664664
head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o
665665

666666
libs-y += arch/mips/lib/
667-
libs-$(CONFIG_MIPS32) += arch/mips/lib-32/
668-
libs-$(CONFIG_MIPS64) += arch/mips/lib-64/
667+
libs-$(CONFIG_32BIT) += arch/mips/lib-32/
668+
libs-$(CONFIG_64BIT) += arch/mips/lib-64/
669669

670670
core-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/
671671

‎arch/mips/configs/atlas_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:00 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/capcella_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:00 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/cobalt_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:00 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/db1000_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:01 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/db1100_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:01 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/db1500_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:01 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/db1550_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:02 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

‎arch/mips/configs/ddb5476_defconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Wed Jan 26 02:49:02 2005
55
#
66
CONFIG_MIPS=y
7-
# CONFIG_MIPS64 is not set
87
# CONFIG_64BIT is not set
9-
CONFIG_MIPS32=y
8+
# CONFIG_64BIT is not set
9+
CONFIG_32BIT=y
1010

1111
#
1212
# Code maturity level options

0 commit comments

Comments
 (0)