Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Ralf Baechle and committed by
Linus Torvalds
875d43e7 63fb6fd1

+332 -321
+45 -34
arch/mips/Kconfig
··· 4 4 # Horrible source of confusion. Die, die, die ... 5 5 select EMBEDDED 6 6 7 - config MIPS64 8 - bool "64-bit kernel" 9 - 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. 15 - 16 - config 64BIT 17 - def_bool MIPS64 18 - 19 - config MIPS32 20 - bool 21 - depends on MIPS64 = 'n' 22 - default y 23 - 24 7 mainmenu "Linux/MIPS Kernel Configuration" 25 8 26 9 source "init/Kconfig" 10 + 11 + menu "Kernel type" 12 + 13 + choice 14 + 15 + prompt "Kernel code model" 16 + help 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. 21 + 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. 28 + 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. 34 + 35 + endchoice 36 + 37 + endmenu 27 38 28 39 menu "Machine selection" 29 40 ··· 166 155 167 156 config TOSHIBA_JMR3927 168 157 bool "Support for Toshiba JMR-TX3927 board" 169 - depends on MIPS32 158 + depends on 32BIT 170 159 select DMA_NONCOHERENT 171 160 select HW_HAS_PCI 172 161 select SWAP_IO_SPACE ··· 184 173 select BOOT_ELF32 185 174 select DMA_NONCOHERENT 186 175 select IRQ_CPU 187 - depends on MIPS32 || EXPERIMENTAL 176 + depends on 32BIT || EXPERIMENTAL 188 177 ---help--- 189 178 This enables support for DEC's MIPS based workstations. For details 190 179 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the ··· 491 480 492 481 config SGI_IP27 493 482 bool "Support for SGI IP27 (Origin200/2000)" 494 - depends on MIPS64 483 + depends on 64BIT 495 484 select ARC 496 485 select ARC64 497 486 select DMA_IP27 ··· 559 548 560 549 config SGI_IP32 561 550 bool "Support for SGI IP32 (O2) (EXPERIMENTAL)" 562 - depends on MIPS64 && EXPERIMENTAL 551 + depends on 64BIT && EXPERIMENTAL 563 552 select ARC 564 553 select ARC32 565 554 select BOOT_ELF32 ··· 573 562 If you want this kernel to run on SGI O2 workstation, say Y here. 574 563 575 564 config SOC_AU1X00 576 - depends on MIPS32 565 + depends on 32BIT 577 566 bool "Support for AMD/Alchemy Au1X00 SOCs" 578 567 579 568 choice ··· 913 902 914 903 config TOSHIBA_RBTX4927 915 904 bool "Support for Toshiba TBTX49[23]7 board" 916 - depends on MIPS32 905 + depends on 32BIT 917 906 select DMA_NONCOHERENT 918 907 select HAS_TXX9_SERIAL 919 908 select HW_HAS_PCI ··· 1182 1171 1183 1172 config CPU_TX39XX 1184 1173 bool "R39XX" 1185 - depends on MIPS32 1174 + depends on 32BIT 1186 1175 1187 1176 config CPU_VR41XX 1188 1177 bool "R41xx" ··· 1216 1205 1217 1206 config CPU_R6000 1218 1207 bool "R6000" 1219 - depends on MIPS32 && EXPERIMENTAL 1208 + depends on 32BIT && EXPERIMENTAL 1220 1209 help 1221 1210 MIPS Technologies R6000 and R6000A series processors. Note these 1222 1211 processors are extremly rare and the support for them is incomplete. ··· 1228 1217 1229 1218 config CPU_R8000 1230 1219 bool "R8000" 1231 - depends on MIPS64 && EXPERIMENTAL 1220 + depends on 64BIT && EXPERIMENTAL 1232 1221 help 1233 1222 MIPS Technologies R8000 processors. Note these processors are 1234 1223 uncommon and the support for them is incomplete. ··· 1341 1330 1342 1331 config 64BIT_PHYS_ADDR 1343 1332 bool "Support for 64-bit physical address space" 1344 - depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && MIPS32 1333 + depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && 32BIT 1345 1334 1346 1335 config CPU_ADVANCED 1347 1336 bool "Override CPU Options" 1348 - depends on MIPS32 1337 + depends on 32BIT 1349 1338 help 1350 1339 Saying yes here allows you to select support for various features 1351 1340 your CPU may or may not have. Most people should say N here. ··· 1399 1388 # 1400 1389 config HIGHMEM 1401 1390 bool "High Memory Support" 1402 - depends on MIPS32 && (CPU_R3000 || CPU_SB1 || CPU_R7000 || CPU_RM9000 || CPU_R10000) && !(MACH_DECSTATION || MOMENCO_JAGUAR_ATX) 1391 + depends on 32BIT && (CPU_R3000 || CPU_SB1 || CPU_R7000 || CPU_RM9000 || CPU_R10000) && !(MACH_DECSTATION || MOMENCO_JAGUAR_ATX) 1403 1392 1404 1393 config ARCH_FLATMEM_ENABLE 1405 1394 def_bool y ··· 1459 1448 1460 1449 config MIPS_INSANE_LARGE 1461 1450 bool "Support for large 64-bit configurations" 1462 - depends on CPU_R10000 && MIPS64 1451 + depends on CPU_R10000 && 64BIT 1463 1452 help 1464 1453 MIPS R10000 does support a 44 bit / 16TB address space as opposed to 1465 1454 previous 64-bit processors which only supported 40 bit / 1TB. If you ··· 1560 1549 1561 1550 config TRAD_SIGNALS 1562 1551 bool 1563 - default y if MIPS32 1552 + default y if 32BIT 1564 1553 1565 1554 config BUILD_ELF64 1566 1555 bool "Use 64-bit ELF format for building" 1567 - depends on MIPS64 1556 + depends on 64BIT 1568 1557 help 1569 1558 A 64-bit kernel is usually built using the 64-bit ELF binary object 1570 1559 format as it's one that allows arbitrary 64-bit constructs. For ··· 1579 1568 1580 1569 config BINFMT_IRIX 1581 1570 bool "Include IRIX binary compatibility" 1582 - depends on !CPU_LITTLE_ENDIAN && MIPS32 && BROKEN 1571 + depends on !CPU_LITTLE_ENDIAN && 32BIT && BROKEN 1583 1572 1584 1573 config MIPS32_COMPAT 1585 1574 bool "Kernel support for Linux/MIPS 32-bit binary compatibility" 1586 - depends on MIPS64 1575 + depends on 64BIT 1587 1576 help 1588 1577 Select this option if you want Linux/MIPS 32-bit binary 1589 1578 compatibility. Since all software available for Linux/MIPS is
+8 -8
arch/mips/Makefile
··· 37 37 64bit-emul = elf64btsmip 38 38 endif 39 39 40 - ifdef CONFIG_MIPS32 40 + ifdef CONFIG_32BIT 41 41 gcc-abi = 32 42 42 tool-prefix = $(32bit-tool-prefix) 43 43 UTS_MACHINE := mips 44 44 endif 45 - ifdef CONFIG_MIPS64 45 + ifdef CONFIG_64BIT 46 46 gcc-abi = 64 47 47 tool-prefix = $(64bit-tool-prefix) 48 48 UTS_MACHINE := mips64 ··· 63 63 vmlinux-32 = vmlinux 64 64 vmlinux-64 = vmlinux.64 65 65 66 - cflags-$(CONFIG_MIPS64) += $(call cc-option,-mno-explicit-relocs) 66 + cflags-$(CONFIG_64BIT) += $(call cc-option,-mno-explicit-relocs) 67 67 endif 68 68 69 69 # ··· 524 524 # 525 525 core-$(CONFIG_SGI_IP22) += arch/mips/sgi-ip22/ 526 526 cflags-$(CONFIG_SGI_IP22) += -Iinclude/asm-mips/mach-ip22 527 - ifdef CONFIG_MIPS32 527 + ifdef CONFIG_32BIT 528 528 load-$(CONFIG_SGI_IP22) += 0xffffffff88002000 529 529 endif 530 - ifdef CONFIG_MIPS64 530 + ifdef CONFIG_64BIT 531 531 load-$(CONFIG_SGI_IP22) += 0xffffffff88004000 532 532 endif 533 533 ··· 632 632 cflags-y += -Iinclude/asm-mips/mach-generic 633 633 drivers-$(CONFIG_PCI) += arch/mips/pci/ 634 634 635 - ifdef CONFIG_MIPS32 635 + ifdef CONFIG_32BIT 636 636 ifdef CONFIG_CPU_LITTLE_ENDIAN 637 637 JIFFIES = jiffies_64 638 638 else ··· 664 664 head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o 665 665 666 666 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/ 669 669 670 670 core-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/ 671 671
+2 -2
arch/mips/configs/atlas_defconfig
··· 4 4 # Wed Jan 26 02:49:00 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/capcella_defconfig
··· 4 4 # Wed Jan 26 02:49:00 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/cobalt_defconfig
··· 4 4 # Wed Jan 26 02:49:00 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/db1000_defconfig
··· 4 4 # Wed Jan 26 02:49:01 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/db1100_defconfig
··· 4 4 # Wed Jan 26 02:49:01 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/db1500_defconfig
··· 4 4 # Wed Jan 26 02:49:01 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/db1550_defconfig
··· 4 4 # Wed Jan 26 02:49:02 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ddb5476_defconfig
··· 4 4 # Wed Jan 26 02:49:02 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ddb5477_defconfig
··· 4 4 # Wed Jan 26 02:49:02 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/decstation_defconfig
··· 4 4 # Wed Jan 26 02:49:03 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/e55_defconfig
··· 4 4 # Wed Jan 26 02:49:03 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ev64120_defconfig
··· 4 4 # Wed Jan 26 02:49:03 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ev96100_defconfig
··· 4 4 # Wed Jan 26 02:49:03 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ip22_defconfig
··· 4 4 # Wed Jan 26 02:49:04 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+1 -1
arch/mips/configs/ip27_defconfig
··· 4 4 # Wed Jan 26 02:49:04 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - CONFIG_MIPS64=y 7 + CONFIG_64BIT=y 8 8 CONFIG_64BIT=y 9 9 10 10 #
+1 -1
arch/mips/configs/ip32_defconfig
··· 4 4 # Wed Jan 26 02:49:04 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - CONFIG_MIPS64=y 7 + CONFIG_64BIT=y 8 8 CONFIG_64BIT=y 9 9 10 10 #
+2 -2
arch/mips/configs/it8172_defconfig
··· 4 4 # Wed Jan 26 02:49:05 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ivr_defconfig
··· 4 4 # Wed Jan 26 02:49:05 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/jaguar-atx_defconfig
··· 4 4 # Wed Jan 26 02:49:05 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/jmr3927_defconfig
··· 4 4 # Wed Jan 26 02:49:06 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/lasat200_defconfig
··· 4 4 # Wed Jan 26 02:49:06 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/malta_defconfig
··· 4 4 # Wed Jan 26 02:53:14 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/mpc30x_defconfig
··· 4 4 # Wed Jan 26 02:49:07 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/ocelot_3_defconfig
··· 4 4 # Wed Jan 26 02:49:07 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+1 -1
arch/mips/configs/ocelot_c_defconfig
··· 4 4 # Wed Jan 26 02:49:07 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - CONFIG_MIPS64=y 7 + CONFIG_64BIT=y 8 8 CONFIG_64BIT=y 9 9 10 10 #
+2 -2
arch/mips/configs/ocelot_defconfig
··· 4 4 # Wed Jan 26 02:49:08 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+1 -1
arch/mips/configs/ocelot_g_defconfig
··· 4 4 # Wed Jan 26 02:49:08 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - CONFIG_MIPS64=y 7 + CONFIG_64BIT=y 8 8 CONFIG_64BIT=y 9 9 10 10 #
+2 -2
arch/mips/configs/pb1100_defconfig
··· 4 4 # Wed Jan 26 02:49:08 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/pb1500_defconfig
··· 4 4 # Wed Jan 26 02:49:09 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/pb1550_defconfig
··· 4 4 # Wed Jan 26 02:49:09 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/rm200_defconfig
··· 4 4 # Wed Jan 26 02:49:09 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/sb1250-swarm_defconfig
··· 4 4 # Wed Jan 26 02:49:10 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/sead_defconfig
··· 4 4 # Wed Jan 26 02:49:10 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/tb0226_defconfig
··· 4 4 # Wed Jan 26 02:49:12 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/tb0229_defconfig
··· 4 4 # Wed Jan 26 02:49:12 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/workpad_defconfig
··· 4 4 # Wed Jan 26 02:49:12 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+2 -2
arch/mips/configs/yosemite_defconfig
··· 4 4 # Wed Jan 26 02:49:13 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+3 -3
arch/mips/dec/int-handler.S
··· 133 133 */ 134 134 mfc0 t0,CP0_CAUSE # get pending interrupts 135 135 mfc0 t1,CP0_STATUS 136 - #ifdef CONFIG_MIPS32 136 + #ifdef CONFIG_32BIT 137 137 lw t2,cpu_fpu_mask 138 138 #endif 139 139 andi t0,ST0_IM # CAUSE.CE may be non-zero! ··· 141 141 142 142 beqz t0,spurious 143 143 144 - #ifdef CONFIG_MIPS32 144 + #ifdef CONFIG_32BIT 145 145 and t2,t0 146 146 bnez t2,fpu # handle FPU immediately 147 147 #endif ··· 271 271 j ret_from_irq 272 272 nop 273 273 274 - #ifdef CONFIG_MIPS32 274 + #ifdef CONFIG_32BIT 275 275 fpu: 276 276 j handle_fpe_int 277 277 nop
+2 -2
arch/mips/dec/prom/Makefile
··· 5 5 6 6 lib-y += init.o memory.o cmdline.o identify.o console.o 7 7 8 - lib-$(CONFIG_MIPS32) += locore.o 9 - lib-$(CONFIG_MIPS64) += call_o32.o 8 + lib-$(CONFIG_32BIT) += locore.o 9 + lib-$(CONFIG_64BIT) += call_o32.o 10 10 11 11 EXTRA_AFLAGS := $(CFLAGS)
+2 -2
arch/mips/defconfig
··· 4 4 # Wed Jan 26 02:48:59 2005 5 5 # 6 6 CONFIG_MIPS=y 7 - # CONFIG_MIPS64 is not set 8 7 # CONFIG_64BIT is not set 9 - CONFIG_MIPS32=y 8 + # CONFIG_64BIT is not set 9 + CONFIG_32BIT=y 10 10 11 11 # 12 12 # Code maturity level options
+5 -5
arch/mips/kernel/Makefile
··· 13 13 14 14 ifdef CONFIG_MODULES 15 15 obj-y += mips_ksyms.o module.o 16 - obj-$(CONFIG_MIPS32) += module-elf32.o 17 - obj-$(CONFIG_MIPS64) += module-elf64.o 16 + obj-$(CONFIG_32BIT) += module-elf32.o 17 + obj-$(CONFIG_64BIT) += module-elf64.o 18 18 endif 19 19 20 20 obj-$(CONFIG_CPU_R3000) += r2300_fpu.o r2300_switch.o ··· 45 45 obj-$(CONFIG_IRQ_CPU_RM9K) += irq-rm9000.o 46 46 obj-$(CONFIG_IRQ_MV64340) += irq-mv6434x.o 47 47 48 - obj-$(CONFIG_MIPS32) += scall32-o32.o 49 - obj-$(CONFIG_MIPS64) += scall64-64.o 48 + obj-$(CONFIG_32BIT) += scall32-o32.o 49 + obj-$(CONFIG_64BIT) += scall64-64.o 50 50 obj-$(CONFIG_BINFMT_IRIX) += binfmt_irix.o 51 51 obj-$(CONFIG_MIPS32_COMPAT) += ioctl32.o linux32.o signal32.o 52 52 obj-$(CONFIG_MIPS32_N32) += binfmt_elfn32.o scall64-n32.o signal_n32.o ··· 55 55 obj-$(CONFIG_KGDB) += gdb-low.o gdb-stub.o 56 56 obj-$(CONFIG_PROC_FS) += proc.o 57 57 58 - obj-$(CONFIG_MIPS64) += cpu-bugs64.o 58 + obj-$(CONFIG_64BIT) += cpu-bugs64.o 59 59 60 60 obj-$(CONFIG_GEN_RTC) += genrtc.o 61 61
+2 -2
arch/mips/kernel/gdb-low.S
··· 13 13 #include <asm/stackframe.h> 14 14 #include <asm/gdb-stub.h> 15 15 16 - #ifdef CONFIG_MIPS32 16 + #ifdef CONFIG_32BIT 17 17 #define DMFC0 mfc0 18 18 #define DMTC0 mtc0 19 19 #define LDC1 lwc1 20 20 #define SDC1 lwc1 21 21 #endif 22 - #ifdef CONFIG_MIPS64 22 + #ifdef CONFIG_64BIT 23 23 #define DMFC0 dmfc0 24 24 #define DMTC0 dmtc0 25 25 #define LDC1 ldc1
+5 -5
arch/mips/kernel/genex.S
··· 54 54 #endif 55 55 mfc0 k1, CP0_CAUSE 56 56 andi k1, k1, 0x7c 57 - #ifdef CONFIG_MIPS64 57 + #ifdef CONFIG_64BIT 58 58 dsll k1, k1, 1 59 59 #endif 60 60 PTR_L k0, exception_handlers(k1) ··· 81 81 beq k1, k0, handle_vced 82 82 li k0, 14<<2 83 83 beq k1, k0, handle_vcei 84 - #ifdef CONFIG_MIPS64 84 + #ifdef CONFIG_64BIT 85 85 dsll k1, k1, 1 86 86 #endif 87 87 .set pop ··· 244 244 start with an n and gas will believe \n is ok ... */ 245 245 .macro __BUILD_verbose nexception 246 246 LONG_L a1, PT_EPC(sp) 247 - #if CONFIG_MIPS32 247 + #if CONFIG_32BIT 248 248 PRINT("Got \nexception at %08lx\012") 249 249 #endif 250 - #if CONFIG_MIPS64 250 + #if CONFIG_64BIT 251 251 PRINT("Got \nexception at %016lx\012") 252 252 #endif 253 253 .endm ··· 293 293 BUILD_HANDLER mcheck mcheck cli verbose /* #24 */ 294 294 BUILD_HANDLER reserved reserved sti verbose /* others */ 295 295 296 - #ifdef CONFIG_MIPS64 296 + #ifdef CONFIG_64BIT 297 297 /* A temporary overflow handler used by check_daddi(). */ 298 298 299 299 __INIT
+3 -3
arch/mips/kernel/head.S
··· 107 107 .endm 108 108 109 109 .macro setup_c0_status_pri 110 - #ifdef CONFIG_MIPS64 110 + #ifdef CONFIG_64BIT 111 111 setup_c0_status ST0_KX 0 112 112 #else 113 113 setup_c0_status 0 0 ··· 115 115 .endm 116 116 117 117 .macro setup_c0_status_sec 118 - #ifdef CONFIG_MIPS64 118 + #ifdef CONFIG_64BIT 119 119 setup_c0_status ST0_KX ST0_BEV 120 120 #else 121 121 setup_c0_status 0 ST0_BEV ··· 215 215 * slightly different layout ... 216 216 */ 217 217 page swapper_pg_dir, _PGD_ORDER 218 - #ifdef CONFIG_MIPS64 218 + #ifdef CONFIG_64BIT 219 219 page invalid_pmd_table, _PMD_ORDER 220 220 #endif 221 221 page invalid_pte_table, _PTE_ORDER
+1 -1
arch/mips/kernel/mips_ksyms.c
··· 35 35 EXPORT_SYMBOL(memmove); 36 36 EXPORT_SYMBOL(strcat); 37 37 EXPORT_SYMBOL(strchr); 38 - #ifdef CONFIG_MIPS64 38 + #ifdef CONFIG_64BIT 39 39 EXPORT_SYMBOL(strncmp); 40 40 #endif 41 41 EXPORT_SYMBOL(strlen);
+4 -4
arch/mips/kernel/process.c
··· 70 70 71 71 /* New thread loses kernel privileges. */ 72 72 status = regs->cp0_status & ~(ST0_CU0|ST0_CU1|KU_MASK); 73 - #ifdef CONFIG_MIPS64 73 + #ifdef CONFIG_64BIT 74 74 status &= ~ST0_FR; 75 75 status |= (current->thread.mflags & MF_32BIT_REGS) ? 0 : ST0_FR; 76 76 #endif ··· 236 236 break; 237 237 238 238 if ( 239 - #ifdef CONFIG_MIPS32 239 + #ifdef CONFIG_32BIT 240 240 ip->i_format.opcode == sw_op && 241 241 #endif 242 - #ifdef CONFIG_MIPS64 242 + #ifdef CONFIG_64BIT 243 243 ip->i_format.opcode == sd_op && 244 244 #endif 245 245 ip->i_format.rs == 29) ··· 353 353 354 354 out: 355 355 356 - #ifdef CONFIG_MIPS64 356 + #ifdef CONFIG_64BIT 357 357 if (current->thread.mflags & MF_32BIT_REGS) /* Kludge for 32-bit ps */ 358 358 pc &= 0xffffffffUL; 359 359 #endif
+6 -6
arch/mips/kernel/ptrace.c
··· 124 124 if (tsk_used_math(child)) { 125 125 fpureg_t *fregs = get_fpu_regs(child); 126 126 127 - #ifdef CONFIG_MIPS32 127 + #ifdef CONFIG_32BIT 128 128 /* 129 129 * The odd registers are actually the high 130 130 * order bits of the values stored in the even ··· 135 135 else 136 136 tmp = (unsigned long) (fregs[(addr - 32)] & 0xffffffff); 137 137 #endif 138 - #ifdef CONFIG_MIPS64 138 + #ifdef CONFIG_64BIT 139 139 tmp = fregs[addr - FPR_BASE]; 140 140 #endif 141 141 } else { ··· 213 213 sizeof(child->thread.fpu.hard)); 214 214 child->thread.fpu.hard.fcr31 = 0; 215 215 } 216 - #ifdef CONFIG_MIPS32 216 + #ifdef CONFIG_32BIT 217 217 /* 218 218 * The odd registers are actually the high order bits 219 219 * of the values stored in the even registers - unless ··· 227 227 fregs[addr - FPR_BASE] |= data; 228 228 } 229 229 #endif 230 - #ifdef CONFIG_MIPS64 230 + #ifdef CONFIG_64BIT 231 231 fregs[addr - FPR_BASE] = data; 232 232 #endif 233 233 break; ··· 304 304 static inline int audit_arch(void) 305 305 { 306 306 #ifdef CONFIG_CPU_LITTLE_ENDIAN 307 - #ifdef CONFIG_MIPS64 307 + #ifdef CONFIG_64BIT 308 308 if (!(current->thread.mflags & MF_32BIT_REGS)) 309 309 return AUDIT_ARCH_MIPSEL64; 310 310 #endif /* MIPS64 */ 311 311 return AUDIT_ARCH_MIPSEL; 312 312 313 313 #else /* big endian... */ 314 - #ifdef CONFIG_MIPS64 314 + #ifdef CONFIG_64BIT 315 315 if (!(current->thread.mflags & MF_32BIT_REGS)) 316 316 return AUDIT_ARCH_MIPS64; 317 317 #endif /* MIPS64 */
+2 -2
arch/mips/kernel/r4k_fpu.S
··· 36 36 LEAF(_save_fp_context) 37 37 cfc1 t1, fcr31 38 38 39 - #ifdef CONFIG_MIPS64 39 + #ifdef CONFIG_64BIT 40 40 /* Store the 16 odd double precision registers */ 41 41 EX sdc1 $f1, SC_FPREGS+8(a0) 42 42 EX sdc1 $f3, SC_FPREGS+24(a0) ··· 118 118 */ 119 119 LEAF(_restore_fp_context) 120 120 EX lw t0, SC_FPC_CSR(a0) 121 - #ifdef CONFIG_MIPS64 121 + #ifdef CONFIG_64BIT 122 122 EX ldc1 $f1, SC_FPREGS+8(a0) 123 123 EX ldc1 $f3, SC_FPREGS+24(a0) 124 124 EX ldc1 $f5, SC_FPREGS+40(a0)
+2 -2
arch/mips/kernel/r4k_switch.S
··· 105 105 * Save a thread's fp context. 106 106 */ 107 107 LEAF(_save_fp) 108 - #ifdef CONFIG_MIPS64 108 + #ifdef CONFIG_64BIT 109 109 mfc0 t1, CP0_STATUS 110 110 #endif 111 111 fpu_save_double a0 t1 t0 t2 # clobbers t1 ··· 142 142 143 143 li t1, -1 # SNaN 144 144 145 - #ifdef CONFIG_MIPS64 145 + #ifdef CONFIG_64BIT 146 146 sll t0, t0, 5 147 147 bgez t0, 1f # 16 / 32 register mode? 148 148
+2 -2
arch/mips/kernel/setup.c
··· 241 241 if (*tmp) 242 242 strcat(command_line, tmp); 243 243 244 - #ifdef CONFIG_MIPS64 244 + #ifdef CONFIG_64BIT 245 245 /* HACK: Guess if the sign extension was forgotten */ 246 246 if (start > 0x0000000080000000 && start < 0x00000000ffffffff) 247 247 start |= 0xffffffff00000000; ··· 446 446 { 447 447 int i; 448 448 449 - #if defined(CONFIG_MIPS64) && !defined(CONFIG_BUILD_ELF64) 449 + #if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64) 450 450 /* 451 451 * The 64bit code in 32bit object format trick can't represent 452 452 * 64bit wide relocations for linker script symbols.
+1 -1
arch/mips/kernel/traps.c
··· 924 924 * flag that some firmware may have left set and the TS bit (for 925 925 * IP27). Set XX for ISA IV code to work. 926 926 */ 927 - #ifdef CONFIG_MIPS64 927 + #ifdef CONFIG_64BIT 928 928 status_set |= ST0_FR|ST0_KX|ST0_SX|ST0_UX; 929 929 #endif 930 930 if (current_cpu_data.isa_level == MIPS_CPU_ISA_IV)
+6 -6
arch/mips/kernel/unaligned.c
··· 240 240 break; 241 241 242 242 case lwu_op: 243 - #ifdef CONFIG_MIPS64 243 + #ifdef CONFIG_64BIT 244 244 /* 245 245 * A 32-bit kernel might be running on a 64-bit processor. But 246 246 * if we're on a 32-bit processor and an i-cache incoherency ··· 278 278 *newvalue = value; 279 279 *regptr = &regs->regs[insn.i_format.rt]; 280 280 break; 281 - #endif /* CONFIG_MIPS64 */ 281 + #endif /* CONFIG_64BIT */ 282 282 283 283 /* Cannot handle 64-bit instructions in 32-bit kernel */ 284 284 goto sigill; 285 285 286 286 case ld_op: 287 - #ifdef CONFIG_MIPS64 287 + #ifdef CONFIG_64BIT 288 288 /* 289 289 * A 32-bit kernel might be running on a 64-bit processor. But 290 290 * if we're on a 32-bit processor and an i-cache incoherency ··· 320 320 *newvalue = value; 321 321 *regptr = &regs->regs[insn.i_format.rt]; 322 322 break; 323 - #endif /* CONFIG_MIPS64 */ 323 + #endif /* CONFIG_64BIT */ 324 324 325 325 /* Cannot handle 64-bit instructions in 32-bit kernel */ 326 326 goto sigill; ··· 392 392 break; 393 393 394 394 case sd_op: 395 - #ifdef CONFIG_MIPS64 395 + #ifdef CONFIG_64BIT 396 396 /* 397 397 * A 32-bit kernel might be running on a 64-bit processor. But 398 398 * if we're on a 32-bit processor and an i-cache incoherency ··· 428 428 if (res) 429 429 goto fault; 430 430 break; 431 - #endif /* CONFIG_MIPS64 */ 431 + #endif /* CONFIG_64BIT */ 432 432 433 433 /* Cannot handle 64-bit instructions in 32-bit kernel */ 434 434 goto sigill;
+1 -1
arch/mips/lib/memcpy.S
··· 79 79 /* 80 80 * Only on the 64-bit kernel we can made use of 64-bit registers. 81 81 */ 82 - #ifdef CONFIG_MIPS64 82 + #ifdef CONFIG_64BIT 83 83 #define USE_DOUBLE 84 84 #endif 85 85
+1 -1
arch/mips/math-emu/kernel_linkage.c
··· 86 86 return err; 87 87 } 88 88 89 - #ifdef CONFIG_MIPS64 89 + #ifdef CONFIG_64BIT 90 90 /* 91 91 * This is the o32 version 92 92 */
+2 -2
arch/mips/mm/Makefile
··· 5 5 obj-y += cache.o extable.o fault.o init.o pgtable.o \ 6 6 tlbex.o tlbex-fault.o 7 7 8 - obj-$(CONFIG_MIPS32) += ioremap.o pgtable-32.o 9 - obj-$(CONFIG_MIPS64) += pgtable-64.o 8 + obj-$(CONFIG_32BIT) += ioremap.o pgtable-32.o 9 + obj-$(CONFIG_64BIT) += pgtable-64.o 10 10 obj-$(CONFIG_HIGHMEM) += highmem.o 11 11 12 12 obj-$(CONFIG_CPU_MIPS32) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
+2 -2
arch/mips/mm/c-r4k.c
··· 723 723 ".set push\n\t" 724 724 ".set noat\n\t" 725 725 ".set mips3\n\t" 726 - #ifdef CONFIG_MIPS32 726 + #ifdef CONFIG_32BIT 727 727 "la $at,1f\n\t" 728 728 #endif 729 - #ifdef CONFIG_MIPS64 729 + #ifdef CONFIG_64BIT 730 730 "dla $at,1f\n\t" 731 731 #endif 732 732 "cache %0,($at)\n\t"
+4 -4
arch/mips/mm/init.c
··· 96 96 kmap_prot = PAGE_KERNEL; 97 97 } 98 98 99 - #ifdef CONFIG_MIPS64 99 + #ifdef CONFIG_64BIT 100 100 static void __init fixrange_init(unsigned long start, unsigned long end, 101 101 pgd_t *pgd_base) 102 102 { ··· 125 125 j = 0; 126 126 } 127 127 } 128 - #endif /* CONFIG_MIPS64 */ 128 + #endif /* CONFIG_64BIT */ 129 129 #endif /* CONFIG_HIGHMEM */ 130 130 131 131 #ifndef CONFIG_NEED_MULTIPLE_NODES ··· 258 258 #ifdef CONFIG_BLK_DEV_INITRD 259 259 void free_initrd_mem(unsigned long start, unsigned long end) 260 260 { 261 - #ifdef CONFIG_MIPS64 261 + #ifdef CONFIG_64BIT 262 262 /* Switch from KSEG0 to XKPHYS addresses */ 263 263 start = (unsigned long)phys_to_virt(CPHYSADDR(start)); 264 264 end = (unsigned long)phys_to_virt(CPHYSADDR(end)); ··· 286 286 287 287 addr = (unsigned long) &__init_begin; 288 288 while (addr < (unsigned long) &__init_end) { 289 - #ifdef CONFIG_MIPS64 289 + #ifdef CONFIG_64BIT 290 290 page = PAGE_OFFSET | CPHYSADDR(addr); 291 291 #else 292 292 page = addr;
+4 -4
arch/mips/mm/pg-sb1.c
··· 114 114 " pref " SB1_PREF_STORE_STREAMED_HINT ", -64(%1)\n" 115 115 " pref " SB1_PREF_LOAD_STREAMED_HINT ", -32(%0)\n" 116 116 "1: pref " SB1_PREF_STORE_STREAMED_HINT ", -32(%1)\n" 117 - # ifdef CONFIG_MIPS64 117 + # ifdef CONFIG_64BIT 118 118 " ld $8, -128(%0) \n" /* Block copy a cacheline */ 119 119 " ld $9, -120(%0) \n" 120 120 " ld $10, -112(%0) \n" ··· 148 148 " daddiu %0, %0, -128 \n" 149 149 " daddiu %1, %1, -128 \n" 150 150 #endif 151 - #ifdef CONFIG_MIPS64 151 + #ifdef CONFIG_64BIT 152 152 " ld $8, 0(%0) \n" /* Block copy a cacheline */ 153 153 "1: ld $9, 8(%0) \n" 154 154 " ld $10, 16(%0) \n" ··· 178 178 " daddiu %0, %0, 32 \n" 179 179 " daddiu %1, %1, 32 \n" 180 180 " bnel %0, %2, 1b \n" 181 - #ifdef CONFIG_MIPS64 181 + #ifdef CONFIG_64BIT 182 182 " ld $8, 0(%0) \n" 183 183 #else 184 184 " lw $2, 0(%0) \n" ··· 186 186 " .set pop \n" 187 187 : "+r" (src), "+r" (dst) 188 188 : "r" (end) 189 - #ifdef CONFIG_MIPS64 189 + #ifdef CONFIG_64BIT 190 190 : "$8","$9","$10","$11","memory"); 191 191 #else 192 192 : "$2","$3","$6","$7","$8","$9","$10","$11","memory");
+15 -15
arch/mips/mm/tlbex.c
··· 448 448 L_LA(_r3000_write_probe_ok) 449 449 450 450 /* convenience macros for instructions */ 451 - #ifdef CONFIG_MIPS64 451 + #ifdef CONFIG_64BIT 452 452 # define i_LW(buf, rs, rt, off) i_ld(buf, rs, rt, off) 453 453 # define i_SW(buf, rs, rt, off) i_sd(buf, rs, rt, off) 454 454 # define i_SLL(buf, rs, rt, sh) i_dsll(buf, rs, rt, sh) ··· 486 486 #define i_ssnop(buf) i_sll(buf, 0, 0, 1) 487 487 #define i_ehb(buf) i_sll(buf, 0, 0, 3) 488 488 489 - #ifdef CONFIG_MIPS64 489 + #ifdef CONFIG_64BIT 490 490 static __init int __attribute__((unused)) in_compat_space_p(long addr) 491 491 { 492 492 /* Is this address in 32bit compat space? */ ··· 516 516 517 517 static __init void i_LA_mostly(u32 **buf, unsigned int rs, long addr) 518 518 { 519 - #if CONFIG_MIPS64 519 + #if CONFIG_64BIT 520 520 if (!in_compat_space_p(addr)) { 521 521 i_lui(buf, rs, rel_highest(addr)); 522 522 if (rel_higher(addr)) ··· 682 682 #define C0_EPC 14 683 683 #define C0_XCONTEXT 20 684 684 685 - #ifdef CONFIG_MIPS64 685 + #ifdef CONFIG_64BIT 686 686 # define GET_CONTEXT(buf, reg) i_MFC0(buf, reg, C0_XCONTEXT) 687 687 #else 688 688 # define GET_CONTEXT(buf, reg) i_MFC0(buf, reg, C0_CONTEXT) ··· 923 923 } 924 924 } 925 925 926 - #ifdef CONFIG_MIPS64 926 + #ifdef CONFIG_64BIT 927 927 /* 928 928 * TMP and PTR are scratch. 929 929 * TMP will be clobbered, PTR will hold the pmd entry. ··· 1010 1010 } 1011 1011 } 1012 1012 1013 - #else /* !CONFIG_MIPS64 */ 1013 + #else /* !CONFIG_64BIT */ 1014 1014 1015 1015 /* 1016 1016 * TMP and PTR are scratch. ··· 1038 1038 i_addu(p, ptr, ptr, tmp); /* add in pgd offset */ 1039 1039 } 1040 1040 1041 - #endif /* !CONFIG_MIPS64 */ 1041 + #endif /* !CONFIG_64BIT */ 1042 1042 1043 1043 static __init void build_adjust_context(u32 **p, unsigned int ctx) 1044 1044 { ··· 1159 1159 /* No need for i_nop */ 1160 1160 } 1161 1161 1162 - #ifdef CONFIG_MIPS64 1162 + #ifdef CONFIG_64BIT 1163 1163 build_get_pmde64(&p, &l, &r, K0, K1); /* get pmd in K1 */ 1164 1164 #else 1165 1165 build_get_pgde32(&p, K0, K1); /* get pgd in K1 */ ··· 1171 1171 l_leave(&l, p); 1172 1172 i_eret(&p); /* return from trap */ 1173 1173 1174 - #ifdef CONFIG_MIPS64 1174 + #ifdef CONFIG_64BIT 1175 1175 build_get_pgd_vmalloc64(&p, &l, &r, K0, K1); 1176 1176 #endif 1177 1177 ··· 1182 1182 * need three, with the the second nop'ed and the third being 1183 1183 * unused. 1184 1184 */ 1185 - #ifdef CONFIG_MIPS32 1185 + #ifdef CONFIG_32BIT 1186 1186 if ((p - tlb_handler) > 64) 1187 1187 panic("TLB refill handler space exceeded"); 1188 1188 #else ··· 1195 1195 /* 1196 1196 * Now fold the handler in the TLB refill handler space. 1197 1197 */ 1198 - #ifdef CONFIG_MIPS32 1198 + #ifdef CONFIG_32BIT 1199 1199 f = final_handler; 1200 1200 /* Simplest case, just copy the handler. */ 1201 1201 copy_handler(relocs, labels, tlb_handler, p, f); 1202 1202 final_len = p - tlb_handler; 1203 - #else /* CONFIG_MIPS64 */ 1203 + #else /* CONFIG_64BIT */ 1204 1204 f = final_handler + 32; 1205 1205 if ((p - tlb_handler) <= 32) { 1206 1206 /* Just copy the handler. */ ··· 1235 1235 copy_handler(relocs, labels, split, p, final_handler); 1236 1236 final_len = (f - (final_handler + 32)) + (p - split); 1237 1237 } 1238 - #endif /* CONFIG_MIPS64 */ 1238 + #endif /* CONFIG_64BIT */ 1239 1239 1240 1240 resolve_relocs(relocs, labels); 1241 1241 printk("Synthesized TLB refill handler (%u instructions).\n", ··· 1605 1605 struct reloc **r, unsigned int pte, 1606 1606 unsigned int ptr) 1607 1607 { 1608 - #ifdef CONFIG_MIPS64 1608 + #ifdef CONFIG_64BIT 1609 1609 build_get_pmde64(p, l, r, pte, ptr); /* get pmd in ptr */ 1610 1610 #else 1611 1611 build_get_pgde32(p, pte, ptr); /* get pgd in ptr */ ··· 1636 1636 l_leave(l, *p); 1637 1637 i_eret(p); /* return from trap */ 1638 1638 1639 - #ifdef CONFIG_MIPS64 1639 + #ifdef CONFIG_64BIT 1640 1640 build_get_pgd_vmalloc64(p, l, r, tmp, ptr); 1641 1641 #endif 1642 1642 }
+5 -5
arch/mips/momentum/jaguar_atx/prom.c
··· 90 90 } 91 91 #endif 92 92 93 - #ifdef CONFIG_MIPS64 93 + #ifdef CONFIG_64BIT 94 94 95 95 unsigned long signext(unsigned long addr) 96 96 { ··· 143 143 144 144 return p; 145 145 } 146 - #endif /* CONFIG_MIPS64 */ 146 + #endif /* CONFIG_64BIT */ 147 147 148 148 /* PMON passes arguments in C main() style */ 149 149 void __init prom_init(void) ··· 158 158 // ja_setup_console(); /* The very first thing. */ 159 159 #endif 160 160 161 - #ifdef CONFIG_MIPS64 161 + #ifdef CONFIG_64BIT 162 162 char *ptr; 163 163 164 164 printk("Mips64 Jaguar-ATX\n"); ··· 201 201 } 202 202 printk("arcs_cmdline: %s\n", arcs_cmdline); 203 203 204 - #else /* CONFIG_MIPS64 */ 204 + #else /* CONFIG_64BIT */ 205 205 /* save the PROM vectors for debugging use */ 206 206 debug_vectors = cv; 207 207 ··· 226 226 } 227 227 env++; 228 228 } 229 - #endif /* CONFIG_MIPS64 */ 229 + #endif /* CONFIG_64BIT */ 230 230 mips_machgroup = MACH_GROUP_MOMENCO; 231 231 mips_machtype = MACH_MOMENCO_JAGUAR_ATX; 232 232
+1 -1
arch/mips/momentum/jaguar_atx/reset.c
··· 27 27 void momenco_jaguar_restart(char *command) 28 28 { 29 29 /* base address of timekeeper portion of part */ 30 - #ifdef CONFIG_MIPS64 30 + #ifdef CONFIG_64BIT 31 31 void *nvram = (void*) 0xfffffffffc807000; 32 32 #else 33 33 void *nvram = (void*) 0xfc807000;
+1 -1
arch/mips/momentum/jaguar_atx/setup.c
··· 105 105 106 106 static __init void wire_stupidity_into_tlb(void) 107 107 { 108 - #ifdef CONFIG_MIPS32 108 + #ifdef CONFIG_32BIT 109 109 write_c0_wired(0); 110 110 local_flush_tlb_all(); 111 111
+6 -6
arch/mips/momentum/ocelot_3/prom.c
··· 93 93 #endif 94 94 95 95 96 - #ifdef CONFIG_MIPS64 96 + #ifdef CONFIG_64BIT 97 97 98 98 unsigned long signext(unsigned long addr) 99 99 { ··· 145 145 146 146 return p; 147 147 } 148 - #endif /* CONFIG_MIPS64 */ 148 + #endif /* CONFIG_64BIT */ 149 149 150 150 void __init prom_init(void) 151 151 { ··· 155 155 struct callvectors *cv = (struct callvectors *) fw_arg3; 156 156 int i; 157 157 158 - #ifdef CONFIG_MIPS64 158 + #ifdef CONFIG_64BIT 159 159 char *ptr; 160 160 printk("prom_init - MIPS64\n"); 161 161 ··· 198 198 } 199 199 printk("arcs_cmdline: %s\n", arcs_cmdline); 200 200 201 - #else /* CONFIG_MIPS64 */ 201 + #else /* CONFIG_64BIT */ 202 202 203 203 /* save the PROM vectors for debugging use */ 204 204 debug_vectors = cv; ··· 224 224 } 225 225 env++; 226 226 } 227 - #endif /* CONFIG_MIPS64 */ 227 + #endif /* CONFIG_64BIT */ 228 228 229 229 mips_machgroup = MACH_GROUP_MOMENCO; 230 230 mips_machtype = MACH_MOMENCO_OCELOT_3; ··· 234 234 get_mac(prom_mac_addr_base); 235 235 #endif 236 236 237 - #ifndef CONFIG_MIPS64 237 + #ifndef CONFIG_64BIT 238 238 debug_vectors->printf("Booting Linux kernel...\n"); 239 239 #endif 240 240 }
+1 -1
arch/mips/momentum/ocelot_c/ocelot_c_fpga.h
··· 32 32 33 33 #include <linux/config.h> 34 34 35 - #ifdef CONFIG_MIPS64 35 + #ifdef CONFIG_64BIT 36 36 #define OCELOT_C_CS0_ADDR (0xfffffffffc000000) 37 37 #else 38 38 #define OCELOT_C_CS0_ADDR (0xfc000000)
+6 -6
arch/mips/momentum/ocelot_c/prom.c
··· 94 94 #endif 95 95 96 96 97 - #ifdef CONFIG_MIPS64 97 + #ifdef CONFIG_64BIT 98 98 99 99 unsigned long signext(unsigned long addr) 100 100 { ··· 144 144 p = (char *)get_arg(args, arg_index); 145 145 return p; 146 146 } 147 - #endif /* CONFIG_MIPS64 */ 147 + #endif /* CONFIG_64BIT */ 148 148 149 149 150 150 void __init prom_init(void) ··· 155 155 struct callvectors *cv = (struct callvectors *) fw_arg3; 156 156 int i; 157 157 158 - #ifdef CONFIG_MIPS64 158 + #ifdef CONFIG_64BIT 159 159 char *ptr; 160 160 161 161 printk("prom_init - MIPS64\n"); ··· 197 197 } 198 198 printk("arcs_cmdline: %s\n", arcs_cmdline); 199 199 200 - #else /* CONFIG_MIPS64 */ 200 + #else /* CONFIG_64BIT */ 201 201 /* save the PROM vectors for debugging use */ 202 202 debug_vectors = cv; 203 203 ··· 222 222 } 223 223 env++; 224 224 } 225 - #endif /* CONFIG_MIPS64 */ 225 + #endif /* CONFIG_64BIT */ 226 226 227 227 mips_machgroup = MACH_GROUP_MOMENCO; 228 228 mips_machtype = MACH_MOMENCO_OCELOT_C; ··· 232 232 get_mac(prom_mac_addr_base); 233 233 #endif 234 234 235 - #ifndef CONFIG_MIPS64 235 + #ifndef CONFIG_64BIT 236 236 debug_vectors->printf("Booting Linux kernel...\n"); 237 237 #endif 238 238 }
+1 -1
arch/mips/momentum/ocelot_c/reset.c
··· 28 28 { 29 29 /* base address of timekeeper portion of part */ 30 30 void *nvram = (void *) 31 - #ifdef CONFIG_MIPS64 31 + #ifdef CONFIG_64BIT 32 32 0xfffffffffc807000; 33 33 #else 34 34 0xfc807000;
+4 -4
arch/mips/momentum/ocelot_c/setup.c
··· 109 109 */ 110 110 printk("PMON_v2_setup\n"); 111 111 112 - #ifdef CONFIG_MIPS64 112 + #ifdef CONFIG_64BIT 113 113 /* marvell and extra space */ 114 114 add_wired_entry(ENTRYLO(0xf4000000), ENTRYLO(0xf4010000), 0xfffffffff4000000, PM_64K); 115 115 /* fpga, rtc, and uart */ ··· 134 134 135 135 unsigned long m48t37y_get_time(void) 136 136 { 137 - #ifdef CONFIG_MIPS64 137 + #ifdef CONFIG_64BIT 138 138 unsigned char *rtc_base = (unsigned char*)0xfffffffffc800000; 139 139 #else 140 140 unsigned char* rtc_base = (unsigned char*)0xfc800000; ··· 163 163 164 164 int m48t37y_set_time(unsigned long sec) 165 165 { 166 - #ifdef CONFIG_MIPS64 166 + #ifdef CONFIG_64BIT 167 167 unsigned char* rtc_base = (unsigned char*)0xfffffffffc800000; 168 168 #else 169 169 unsigned char* rtc_base = (unsigned char*)0xfc800000; ··· 342 342 343 343 early_initcall(momenco_ocelot_c_setup); 344 344 345 - #ifndef CONFIG_MIPS64 345 + #ifndef CONFIG_64BIT 346 346 /* This needs to be one of the first initcalls, because no I/O port access 347 347 can work before this */ 348 348 static int io_base_ioremap(void)
+1 -1
arch/mips/pci/pci-ip32.c
··· 84 84 85 85 86 86 extern struct pci_ops mace_pci_ops; 87 - #ifdef CONFIG_MIPS64 87 + #ifdef CONFIG_64BIT 88 88 static struct resource mace_pci_mem_resource = { 89 89 .name = "SGI O2 PCI MEM", 90 90 .start = MACEPCI_HI_MEMORY,
+1 -1
arch/mips/sibyte/cfe/setup.c
··· 33 33 #include "cfe_error.h" 34 34 35 35 /* Max ram addressable in 32-bit segments */ 36 - #ifdef CONFIG_MIPS64 36 + #ifdef CONFIG_64BIT 37 37 #define MAX_RAM_SIZE (~0ULL) 38 38 #else 39 39 #ifdef CONFIG_HIGHMEM
+1 -1
arch/mips/sibyte/swarm/setup.c
··· 73 73 { 74 74 if (!is_fixup && (regs->cp0_cause & 4)) { 75 75 /* Data bus error - print PA */ 76 - #ifdef CONFIG_MIPS64 76 + #ifdef CONFIG_64BIT 77 77 printk("DBE physical address: %010lx\n", 78 78 __read_64bit_c0_register($26, 1)); 79 79 #else
+1 -1
drivers/block/Kconfig
··· 455 455 #for instance. 456 456 config LBD 457 457 bool "Support for Large Block Devices" 458 - depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH || UML 458 + depends on X86 || (MIPS && 32BIT) || PPC32 || ARCH_S390_31 || SUPERH || UML 459 459 help 460 460 Say Y here if you want to attach large (bigger than 2TB) discs to 461 461 your machine, or if you want to have a raid or loopback device
+1 -1
drivers/scsi/Kconfig
··· 250 250 251 251 config SCSI_DECSII 252 252 tristate "DEC SII Scsi Driver" 253 - depends on MACH_DECSTATION && SCSI && MIPS32 253 + depends on MACH_DECSTATION && SCSI && 32BIT 254 254 255 255 config BLK_DEV_3W_XXXX_RAID 256 256 tristate "3ware 5/6/7/8xxx ATA-RAID support"
+1 -1
drivers/serial/Kconfig
··· 308 308 309 309 config SERIAL_DZ 310 310 bool "DECstation DZ serial driver" 311 - depends on MACH_DECSTATION && MIPS32 311 + depends on MACH_DECSTATION && 32BIT 312 312 select SERIAL_CORE 313 313 help 314 314 DZ11-family serial controllers for VAXstations, including the
+2 -2
include/asm-mips/a.out.h
··· 35 35 36 36 #ifdef __KERNEL__ 37 37 38 - #ifdef CONFIG_MIPS32 38 + #ifdef CONFIG_32BIT 39 39 #define STACK_TOP TASK_SIZE 40 40 #endif 41 - #ifdef CONFIG_MIPS64 41 + #ifdef CONFIG_64BIT 42 42 #define STACK_TOP (current->thread.mflags & MF_32BIT_ADDR ? TASK_SIZE32 : TASK_SIZE) 43 43 #endif 44 44
+1 -1
include/asm-mips/addrspace.h
··· 48 48 #define CPHYSADDR(a) ((_ACAST32_ (a)) & 0x1fffffff) 49 49 #define XPHYSADDR(a) ((_ACAST64_ (a)) & 0x000000ffffffffff) 50 50 51 - #ifdef CONFIG_MIPS64 51 + #ifdef CONFIG_64BIT 52 52 53 53 /* 54 54 * Memory segments (64bit kernel mode addresses)
+2 -2
include/asm-mips/asmmacro.h
··· 11 11 #include <linux/config.h> 12 12 #include <asm/hazards.h> 13 13 14 - #ifdef CONFIG_MIPS32 14 + #ifdef CONFIG_32BIT 15 15 #include <asm/asmmacro-32.h> 16 16 #endif 17 - #ifdef CONFIG_MIPS64 17 + #ifdef CONFIG_64BIT 18 18 #include <asm/asmmacro-64.h> 19 19 #endif 20 20
+2 -2
include/asm-mips/atomic.h
··· 334 334 */ 335 335 #define atomic_add_negative(i,v) (atomic_add_return(i, (v)) < 0) 336 336 337 - #ifdef CONFIG_MIPS64 337 + #ifdef CONFIG_64BIT 338 338 339 339 typedef struct { volatile __s64 counter; } atomic64_t; 340 340 ··· 639 639 */ 640 640 #define atomic64_add_negative(i,v) (atomic64_add_return(i, (v)) < 0) 641 641 642 - #endif /* CONFIG_MIPS64 */ 642 + #endif /* CONFIG_64BIT */ 643 643 644 644 /* 645 645 * atomic*_return operations are serializing but not the non-*_return
+4 -4
include/asm-mips/bitops.h
··· 533 533 int b = 0, s; 534 534 535 535 word = ~word; 536 - #ifdef CONFIG_MIPS32 536 + #ifdef CONFIG_32BIT 537 537 s = 16; if (word << 16 != 0) s = 0; b += s; word >>= s; 538 538 s = 8; if (word << 24 != 0) s = 0; b += s; word >>= s; 539 539 s = 4; if (word << 28 != 0) s = 0; b += s; word >>= s; 540 540 s = 2; if (word << 30 != 0) s = 0; b += s; word >>= s; 541 541 s = 1; if (word << 31 != 0) s = 0; b += s; 542 542 #endif 543 - #ifdef CONFIG_MIPS64 543 + #ifdef CONFIG_64BIT 544 544 s = 32; if (word << 32 != 0) s = 0; b += s; word >>= s; 545 545 s = 16; if (word << 48 != 0) s = 0; b += s; word >>= s; 546 546 s = 8; if (word << 56 != 0) s = 0; b += s; word >>= s; ··· 683 683 */ 684 684 static inline int sched_find_first_bit(const unsigned long *b) 685 685 { 686 - #ifdef CONFIG_MIPS32 686 + #ifdef CONFIG_32BIT 687 687 if (unlikely(b[0])) 688 688 return __ffs(b[0]); 689 689 if (unlikely(b[1])) ··· 694 694 return __ffs(b[3]) + 96; 695 695 return __ffs(b[4]) + 128; 696 696 #endif 697 - #ifdef CONFIG_MIPS64 697 + #ifdef CONFIG_64BIT 698 698 if (unlikely(b[0])) 699 699 return __ffs(b[0]); 700 700 if (unlikely(b[1]))
+1 -1
include/asm-mips/bugs.h
··· 15 15 static inline void check_bugs(void) 16 16 { 17 17 check_bugs32(); 18 - #ifdef CONFIG_MIPS64 18 + #ifdef CONFIG_64BIT 19 19 check_bugs64(); 20 20 #endif 21 21 }
+2 -2
include/asm-mips/checksum.h
··· 128 128 { 129 129 __asm__( 130 130 ".set\tnoat\t\t\t# csum_tcpudp_nofold\n\t" 131 - #ifdef CONFIG_MIPS32 131 + #ifdef CONFIG_32BIT 132 132 "addu\t%0, %2\n\t" 133 133 "sltu\t$1, %0, %2\n\t" 134 134 "addu\t%0, $1\n\t" ··· 141 141 "sltu\t$1, %0, %4\n\t" 142 142 "addu\t%0, $1\n\t" 143 143 #endif 144 - #ifdef CONFIG_MIPS64 144 + #ifdef CONFIG_64BIT 145 145 "daddu\t%0, %2\n\t" 146 146 "daddu\t%0, %3\n\t" 147 147 "daddu\t%0, %4\n\t"
+2 -2
include/asm-mips/cpu-features.h
··· 106 106 #define PLAT_TRAMPOLINE_STUFF_LINE 0UL 107 107 #endif 108 108 109 - #ifdef CONFIG_MIPS32 109 + #ifdef CONFIG_32BIT 110 110 # ifndef cpu_has_nofpuex 111 111 # define cpu_has_nofpuex (cpu_data[0].options & MIPS_CPU_NOFPUEX) 112 112 # endif ··· 124 124 # endif 125 125 #endif 126 126 127 - #ifdef CONFIG_MIPS64 127 + #ifdef CONFIG_64BIT 128 128 # ifndef cpu_has_nofpuex 129 129 # define cpu_has_nofpuex 0 130 130 # endif
+6 -6
include/asm-mips/dec/prom.h
··· 48 48 */ 49 49 #define REX_PROM_MAGIC 0x30464354 50 50 51 - #ifdef CONFIG_MIPS64 51 + #ifdef CONFIG_64BIT 52 52 53 53 #define prom_is_rex(magic) 1 /* KN04 and KN05 are REX PROMs. */ 54 54 55 - #else /* !CONFIG_MIPS64 */ 55 + #else /* !CONFIG_64BIT */ 56 56 57 57 #define prom_is_rex(magic) ((magic) == REX_PROM_MAGIC) 58 58 59 - #endif /* !CONFIG_MIPS64 */ 59 + #endif /* !CONFIG_64BIT */ 60 60 61 61 62 62 /* ··· 105 105 extern int (*__pmax_close)(int); 106 106 107 107 108 - #ifdef CONFIG_MIPS64 108 + #ifdef CONFIG_64BIT 109 109 110 110 /* 111 111 * On MIPS64 we have to call PROM functions via a helper ··· 138 138 #define prom_getenv(x) _prom_getenv(__prom_getenv, x) 139 139 #define prom_printf(x...) _prom_printf(__prom_printf, x) 140 140 141 - #else /* !CONFIG_MIPS64 */ 141 + #else /* !CONFIG_64BIT */ 142 142 143 143 /* 144 144 * On plain MIPS we just call PROM functions directly. ··· 160 160 #define pmax_read __pmax_read 161 161 #define pmax_close __pmax_close 162 162 163 - #endif /* !CONFIG_MIPS64 */ 163 + #endif /* !CONFIG_64BIT */ 164 164 165 165 166 166 extern void prom_meminit(u32);
+3 -3
include/asm-mips/delay.h
··· 57 57 * The common rates of 1000 and 128 are rounded wrongly by the 58 58 * catchall case for 64-bit. Excessive precission? Probably ... 59 59 */ 60 - #if defined(CONFIG_MIPS64) && (HZ == 128) 60 + #if defined(CONFIG_64BIT) && (HZ == 128) 61 61 usecs *= 0x0008637bd05af6c7UL; /* 2**64 / (1000000 / HZ) */ 62 - #elif defined(CONFIG_MIPS64) && (HZ == 1000) 62 + #elif defined(CONFIG_64BIT) && (HZ == 1000) 63 63 usecs *= 0x004189374BC6A7f0UL; /* 2**64 / (1000000 / HZ) */ 64 - #elif defined(CONFIG_MIPS64) 64 + #elif defined(CONFIG_64BIT) 65 65 usecs *= (0x8000000000000000UL / (500000 / HZ)); 66 66 #else /* 32-bit junk follows here */ 67 67 usecs *= (unsigned long) (((0x8000000000000000ULL / (500000 / HZ)) +
+8 -8
include/asm-mips/elf.h
··· 125 125 typedef double elf_fpreg_t; 126 126 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; 127 127 128 - #ifdef CONFIG_MIPS32 128 + #ifdef CONFIG_32BIT 129 129 130 130 /* 131 131 * This is used to ensure we don't load something for the wrong architecture. ··· 153 153 */ 154 154 #define ELF_CLASS ELFCLASS32 155 155 156 - #endif /* CONFIG_MIPS32 */ 156 + #endif /* CONFIG_32BIT */ 157 157 158 - #ifdef CONFIG_MIPS64 158 + #ifdef CONFIG_64BIT 159 159 /* 160 160 * This is used to ensure we don't load something for the wrong architecture. 161 161 */ ··· 177 177 */ 178 178 #define ELF_CLASS ELFCLASS64 179 179 180 - #endif /* CONFIG_MIPS64 */ 180 + #endif /* CONFIG_64BIT */ 181 181 182 182 /* 183 183 * These are used to set parameters in the core dumps. ··· 193 193 194 194 #ifdef __KERNEL__ 195 195 196 - #ifdef CONFIG_MIPS32 196 + #ifdef CONFIG_32BIT 197 197 198 198 #define SET_PERSONALITY(ex, ibcs2) \ 199 199 do { \ ··· 202 202 set_personality(PER_LINUX); \ 203 203 } while (0) 204 204 205 - #endif /* CONFIG_MIPS32 */ 205 + #endif /* CONFIG_32BIT */ 206 206 207 - #ifdef CONFIG_MIPS64 207 + #ifdef CONFIG_64BIT 208 208 209 209 #define SET_PERSONALITY(ex, ibcs2) \ 210 210 do { current->thread.mflags &= ~MF_ABI_MASK; \ ··· 222 222 set_personality(PER_LINUX); \ 223 223 } while (0) 224 224 225 - #endif /* CONFIG_MIPS64 */ 225 + #endif /* CONFIG_64BIT */ 226 226 227 227 extern void dump_regs(elf_greg_t *, struct pt_regs *regs); 228 228 extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *);
+2 -2
include/asm-mips/local.h
··· 5 5 #include <linux/percpu.h> 6 6 #include <asm/atomic.h> 7 7 8 - #ifdef CONFIG_MIPS32 8 + #ifdef CONFIG_32BIT 9 9 10 10 typedef atomic_t local_t; 11 11 ··· 20 20 21 21 #endif 22 22 23 - #ifdef CONFIG_MIPS64 23 + #ifdef CONFIG_64BIT 24 24 25 25 typedef atomic64_t local_t; 26 26
+4 -4
include/asm-mips/mach-generic/spaces.h
··· 12 12 13 13 #include <linux/config.h> 14 14 15 - #ifdef CONFIG_MIPS32 15 + #ifdef CONFIG_32BIT 16 16 17 17 #define CAC_BASE 0x80000000 18 18 #define IO_BASE 0xa0000000 ··· 32 32 #define HIGHMEM_START 0x20000000UL 33 33 #endif 34 34 35 - #endif /* CONFIG_MIPS32 */ 35 + #endif /* CONFIG_32BIT */ 36 36 37 - #ifdef CONFIG_MIPS64 37 + #ifdef CONFIG_64BIT 38 38 39 39 /* 40 40 * This handles the memory map. ··· 67 67 #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) 68 68 #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK)) 69 69 70 - #endif /* CONFIG_MIPS64 */ 70 + #endif /* CONFIG_64BIT */ 71 71 72 72 #endif /* __ASM_MACH_GENERIC_SPACES_H */
+4 -4
include/asm-mips/mach-ip22/spaces.h
··· 12 12 13 13 #include <linux/config.h> 14 14 15 - #ifdef CONFIG_MIPS32 15 + #ifdef CONFIG_32BIT 16 16 17 17 #define CAC_BASE 0x80000000 18 18 #define IO_BASE 0xa0000000 ··· 32 32 #define HIGHMEM_START 0x20000000UL 33 33 #endif 34 34 35 - #endif /* CONFIG_MIPS32 */ 35 + #endif /* CONFIG_32BIT */ 36 36 37 - #ifdef CONFIG_MIPS64 37 + #ifdef CONFIG_64BIT 38 38 #define PAGE_OFFSET 0xffffffff80000000UL 39 39 40 40 #ifndef HIGHMEM_START ··· 50 50 #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) 51 51 #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK)) 52 52 53 - #endif /* CONFIG_MIPS64 */ 53 + #endif /* CONFIG_64BIT */ 54 54 55 55 #endif /* __ASM_MACH_IP22_SPACES_H */
+1 -1
include/asm-mips/mach-ip32/cpu-feature-overrides.h
··· 18 18 * so, for 64bit IP32 kernel we just don't use ll/sc. 19 19 * This does not affect luserland. 20 20 */ 21 - #if defined(CONFIG_CPU_R5000) && defined(CONFIG_MIPS64) 21 + #if defined(CONFIG_CPU_R5000) && defined(CONFIG_64BIT) 22 22 #define cpu_has_llsc 0 23 23 #else 24 24 #define cpu_has_llsc 1
+3 -3
include/asm-mips/mmu_context.h
··· 28 28 #define TLBMISS_HANDLER_SETUP_PGD(pgd) \ 29 29 pgd_current[smp_processor_id()] = (unsigned long)(pgd) 30 30 31 - #ifdef CONFIG_MIPS32 31 + #ifdef CONFIG_32BIT 32 32 #define TLBMISS_HANDLER_SETUP() \ 33 33 write_c0_context((unsigned long) smp_processor_id() << 23); \ 34 34 TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir) 35 35 #endif 36 - #if defined(CONFIG_MIPS64) && !defined(CONFIG_BUILD_ELF64) 36 + #if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64) 37 37 #define TLBMISS_HANDLER_SETUP() \ 38 38 write_c0_context((unsigned long) &pgd_current[smp_processor_id()] << 23); \ 39 39 TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir) 40 40 #endif 41 - #if defined(CONFIG_MIPS64) && defined(CONFIG_BUILD_ELF64) 41 + #if defined(CONFIG_64BIT) && defined(CONFIG_BUILD_ELF64) 42 42 #define TLBMISS_HANDLER_SETUP() \ 43 43 write_c0_context((unsigned long) smp_processor_id() << 23); \ 44 44 TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
+2 -2
include/asm-mips/module.h
··· 25 25 Elf64_Sxword r_addend; /* Addend. */ 26 26 } Elf64_Mips_Rela; 27 27 28 - #ifdef CONFIG_MIPS32 28 + #ifdef CONFIG_32BIT 29 29 30 30 #define Elf_Shdr Elf32_Shdr 31 31 #define Elf_Sym Elf32_Sym ··· 33 33 34 34 #endif 35 35 36 - #ifdef CONFIG_MIPS64 36 + #ifdef CONFIG_64BIT 37 37 38 38 #define Elf_Shdr Elf64_Shdr 39 39 #define Elf_Sym Elf64_Sym
+6 -6
include/asm-mips/msgbuf.h
··· 15 15 16 16 struct msqid64_ds { 17 17 struct ipc64_perm msg_perm; 18 - #if defined(CONFIG_MIPS32) && !defined(CONFIG_CPU_LITTLE_ENDIAN) 18 + #if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN) 19 19 unsigned long __unused1; 20 20 #endif 21 21 __kernel_time_t msg_stime; /* last msgsnd time */ 22 - #if defined(CONFIG_MIPS32) && defined(CONFIG_CPU_LITTLE_ENDIAN) 22 + #if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN) 23 23 unsigned long __unused1; 24 24 #endif 25 - #if defined(CONFIG_MIPS32) && !defined(CONFIG_CPU_LITTLE_ENDIAN) 25 + #if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN) 26 26 unsigned long __unused2; 27 27 #endif 28 28 __kernel_time_t msg_rtime; /* last msgrcv time */ 29 - #if defined(CONFIG_MIPS32) && defined(CONFIG_CPU_LITTLE_ENDIAN) 29 + #if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN) 30 30 unsigned long __unused2; 31 31 #endif 32 - #if defined(CONFIG_MIPS32) && !defined(CONFIG_CPU_LITTLE_ENDIAN) 32 + #if defined(CONFIG_32BIT) && !defined(CONFIG_CPU_LITTLE_ENDIAN) 33 33 unsigned long __unused3; 34 34 #endif 35 35 __kernel_time_t msg_ctime; /* last change time */ 36 - #if defined(CONFIG_MIPS32) && defined(CONFIG_CPU_LITTLE_ENDIAN) 36 + #if defined(CONFIG_32BIT) && defined(CONFIG_CPU_LITTLE_ENDIAN) 37 37 unsigned long __unused3; 38 38 #endif 39 39 unsigned long msg_cbytes; /* current number of bytes on queue */
+2 -2
include/asm-mips/paccess.h
··· 16 16 #include <linux/config.h> 17 17 #include <linux/errno.h> 18 18 19 - #ifdef CONFIG_MIPS32 19 + #ifdef CONFIG_32BIT 20 20 #define __PA_ADDR ".word" 21 21 #endif 22 - #ifdef CONFIG_MIPS64 22 + #ifdef CONFIG_64BIT 23 23 #define __PA_ADDR ".dword" 24 24 #endif 25 25
+2 -2
include/asm-mips/pgalloc.h
··· 85 85 86 86 #define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte)) 87 87 88 - #ifdef CONFIG_MIPS32 88 + #ifdef CONFIG_32BIT 89 89 #define pgd_populate(mm, pmd, pte) BUG() 90 90 91 91 /* ··· 97 97 #define __pmd_free_tlb(tlb,x) do { } while (0) 98 98 #endif 99 99 100 - #ifdef CONFIG_MIPS64 100 + #ifdef CONFIG_64BIT 101 101 102 102 #define pgd_populate(mm, pgd, pmd) set_pgd(pgd, __pgd(pmd)) 103 103
+2 -2
include/asm-mips/pgtable.h
··· 11 11 #include <asm-generic/4level-fixup.h> 12 12 13 13 #include <linux/config.h> 14 - #ifdef CONFIG_MIPS32 14 + #ifdef CONFIG_32BIT 15 15 #include <asm/pgtable-32.h> 16 16 #endif 17 - #ifdef CONFIG_MIPS64 17 + #ifdef CONFIG_64BIT 18 18 #include <asm/pgtable-64.h> 19 19 #endif 20 20
+2 -2
include/asm-mips/processor.h
··· 33 33 34 34 extern unsigned int vced_count, vcei_count; 35 35 36 - #ifdef CONFIG_MIPS32 36 + #ifdef CONFIG_32BIT 37 37 /* 38 38 * User space process size: 2GB. This is hardcoded into a few places, 39 39 * so don't change it unless you know what you are doing. ··· 47 47 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3)) 48 48 #endif 49 49 50 - #ifdef CONFIG_MIPS64 50 + #ifdef CONFIG_64BIT 51 51 /* 52 52 * User space process size: 1TB. This is hardcoded into a few places, 53 53 * so don't change it unless you know what you are doing. TASK_SIZE
+1 -1
include/asm-mips/ptrace.h
··· 28 28 * system call/exception. As usual the registers k0/k1 aren't being saved. 29 29 */ 30 30 struct pt_regs { 31 - #ifdef CONFIG_MIPS32 31 + #ifdef CONFIG_32BIT 32 32 /* Pad bytes for argument save space on the stack. */ 33 33 unsigned long pad0[6]; 34 34 #endif
+3 -3
include/asm-mips/reg.h
··· 14 14 15 15 #include <linux/config.h> 16 16 17 - #if defined(CONFIG_MIPS32) || defined(WANT_COMPAT_REG_H) 17 + #if defined(CONFIG_32BIT) || defined(WANT_COMPAT_REG_H) 18 18 19 19 #define EF_R0 6 20 20 #define EF_R1 7 ··· 70 70 71 71 #endif 72 72 73 - #if CONFIG_MIPS64 73 + #if CONFIG_64BIT 74 74 75 75 #define EF_R0 0 76 76 #define EF_R1 1 ··· 124 124 125 125 #define EF_SIZE 304 /* size in bytes */ 126 126 127 - #endif /* CONFIG_MIPS64 */ 127 + #endif /* CONFIG_64BIT */ 128 128 129 129 #endif /* __ASM_MIPS_REG_H */
+1 -1
include/asm-mips/resource.h
··· 27 27 * but we keep the old value on MIPS32, 28 28 * for compatibility: 29 29 */ 30 - #ifdef CONFIG_MIPS32 30 + #ifdef CONFIG_32BIT 31 31 # define RLIM_INFINITY 0x7fffffffUL 32 32 #endif 33 33
+4 -4
include/asm-mips/sgiarcs.h
··· 367 367 * Macros for calling a 32-bit ARC implementation from 64-bit code 368 368 */ 369 369 370 - #if defined(CONFIG_MIPS64) && defined(CONFIG_ARC32) 370 + #if defined(CONFIG_64BIT) && defined(CONFIG_ARC32) 371 371 372 372 #define __arc_clobbers \ 373 373 "$2","$3" /* ... */, "$8","$9","$10","$11", \ ··· 476 476 __res; \ 477 477 }) 478 478 479 - #endif /* defined(CONFIG_MIPS64) && defined(CONFIG_ARC32) */ 479 + #endif /* defined(CONFIG_64BIT) && defined(CONFIG_ARC32) */ 480 480 481 - #if (defined(CONFIG_MIPS32) && defined(CONFIG_ARC32)) || \ 482 - (defined(CONFIG_MIPS64) && defined(CONFIG_ARC64)) 481 + #if (defined(CONFIG_32BIT) && defined(CONFIG_ARC32)) || \ 482 + (defined(CONFIG_64BIT) && defined(CONFIG_ARC64)) 483 483 484 484 #define ARC_CALL0(dest) \ 485 485 ({ long __res; \
+2 -2
include/asm-mips/siginfo.h
··· 25 25 /* 26 26 * Careful to keep union _sifields from shifting ... 27 27 */ 28 - #ifdef CONFIG_MIPS32 28 + #ifdef CONFIG_32BIT 29 29 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) 30 30 #endif 31 - #ifdef CONFIG_MIPS64 31 + #ifdef CONFIG_64BIT 32 32 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) 33 33 #endif 34 34
+4 -4
include/asm-mips/sim.h
··· 16 16 #define __str2(x) #x 17 17 #define __str(x) __str2(x) 18 18 19 - #ifdef CONFIG_MIPS32 19 + #ifdef CONFIG_32BIT 20 20 21 21 #define save_static_function(symbol) \ 22 22 __asm__ ( \ ··· 42 42 43 43 #define nabi_no_regargs 44 44 45 - #endif /* CONFIG_MIPS32 */ 45 + #endif /* CONFIG_32BIT */ 46 46 47 - #ifdef CONFIG_MIPS64 47 + #ifdef CONFIG_64BIT 48 48 49 49 #define save_static_function(symbol) \ 50 50 __asm__ ( \ ··· 78 78 unsigned long __dummy6, \ 79 79 unsigned long __dummy7, 80 80 81 - #endif /* CONFIG_MIPS64 */ 81 + #endif /* CONFIG_64BIT */ 82 82 83 83 #endif /* _ASM_SIM_H */
+11 -11
include/asm-mips/stackframe.h
··· 26 26 27 27 .macro SAVE_TEMP 28 28 mfhi v1 29 - #ifdef CONFIG_MIPS32 29 + #ifdef CONFIG_32BIT 30 30 LONG_S $8, PT_R8(sp) 31 31 LONG_S $9, PT_R9(sp) 32 32 #endif ··· 56 56 57 57 #ifdef CONFIG_SMP 58 58 .macro get_saved_sp /* SMP variation */ 59 - #ifdef CONFIG_MIPS32 59 + #ifdef CONFIG_32BIT 60 60 mfc0 k0, CP0_CONTEXT 61 61 lui k1, %hi(kernelsp) 62 62 srl k0, k0, 23 ··· 64 64 addu k1, k0 65 65 LONG_L k1, %lo(kernelsp)(k1) 66 66 #endif 67 - #if defined(CONFIG_MIPS64) && !defined(CONFIG_BUILD_ELF64) 67 + #if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64) 68 68 MFC0 k1, CP0_CONTEXT 69 69 dsra k1, 23 70 70 lui k0, %hi(pgd_current) ··· 74 74 daddu k1, k0 75 75 LONG_L k1, %lo(kernelsp)(k1) 76 76 #endif 77 - #if defined(CONFIG_MIPS64) && defined(CONFIG_BUILD_ELF64) 77 + #if defined(CONFIG_64BIT) && defined(CONFIG_BUILD_ELF64) 78 78 MFC0 k1, CP0_CONTEXT 79 79 dsrl k1, 23 80 80 dsll k1, k1, 3 ··· 83 83 .endm 84 84 85 85 .macro set_saved_sp stackp temp temp2 86 - #ifdef CONFIG_MIPS32 86 + #ifdef CONFIG_32BIT 87 87 mfc0 \temp, CP0_CONTEXT 88 88 srl \temp, 23 89 89 sll \temp, 2 90 90 LONG_S \stackp, kernelsp(\temp) 91 91 #endif 92 - #if defined(CONFIG_MIPS64) && !defined(CONFIG_BUILD_ELF64) 92 + #if defined(CONFIG_64BIT) && !defined(CONFIG_BUILD_ELF64) 93 93 lw \temp, TI_CPU(gp) 94 94 dsll \temp, 3 95 95 lui \temp2, %hi(kernelsp) 96 96 daddu \temp, \temp2 97 97 LONG_S \stackp, %lo(kernelsp)(\temp) 98 98 #endif 99 - #if defined(CONFIG_MIPS64) && defined(CONFIG_BUILD_ELF64) 99 + #if defined(CONFIG_64BIT) && defined(CONFIG_BUILD_ELF64) 100 100 lw \temp, TI_CPU(gp) 101 101 dsll \temp, 3 102 102 LONG_S \stackp, kernelsp(\temp) ··· 140 140 LONG_S $6, PT_R6(sp) 141 141 MFC0 v1, CP0_EPC 142 142 LONG_S $7, PT_R7(sp) 143 - #ifdef CONFIG_MIPS64 143 + #ifdef CONFIG_64BIT 144 144 LONG_S $8, PT_R8(sp) 145 145 LONG_S $9, PT_R9(sp) 146 146 #endif ··· 169 169 170 170 .macro RESTORE_TEMP 171 171 LONG_L $24, PT_LO(sp) 172 - #ifdef CONFIG_MIPS32 172 + #ifdef CONFIG_32BIT 173 173 LONG_L $8, PT_R8(sp) 174 174 LONG_L $9, PT_R9(sp) 175 175 #endif ··· 217 217 LONG_L $31, PT_R31(sp) 218 218 LONG_L $28, PT_R28(sp) 219 219 LONG_L $25, PT_R25(sp) 220 - #ifdef CONFIG_MIPS64 220 + #ifdef CONFIG_64BIT 221 221 LONG_L $8, PT_R8(sp) 222 222 LONG_L $9, PT_R9(sp) 223 223 #endif ··· 262 262 LONG_L $31, PT_R31(sp) 263 263 LONG_L $28, PT_R28(sp) 264 264 LONG_L $25, PT_R25(sp) 265 - #ifdef CONFIG_MIPS64 265 + #ifdef CONFIG_64BIT 266 266 LONG_L $8, PT_R8(sp) 267 267 LONG_L $9, PT_R9(sp) 268 268 #endif
+4 -4
include/asm-mips/string.h
··· 16 16 * Most of the inline functions are rather naive implementations so I just 17 17 * didn't bother updating them for 64-bit ... 18 18 */ 19 - #ifdef CONFIG_MIPS32 19 + #ifdef CONFIG_32BIT 20 20 21 21 #ifndef IN_STRING_C 22 22 ··· 130 130 131 131 return __res; 132 132 } 133 - #endif /* CONFIG_MIPS32 */ 133 + #endif /* CONFIG_32BIT */ 134 134 135 135 #define __HAVE_ARCH_MEMSET 136 136 extern void *memset(void *__s, int __c, size_t __count); ··· 141 141 #define __HAVE_ARCH_MEMMOVE 142 142 extern void *memmove(void *__dest, __const__ void *__src, size_t __n); 143 143 144 - #ifdef CONFIG_MIPS32 144 + #ifdef CONFIG_32BIT 145 145 #define __HAVE_ARCH_MEMSCAN 146 146 static __inline__ void *memscan(void *__addr, int __c, size_t __size) 147 147 { ··· 161 161 162 162 return __addr; 163 163 } 164 - #endif /* CONFIG_MIPS32 */ 164 + #endif /* CONFIG_32BIT */ 165 165 166 166 #endif /* _ASM_STRING_H */
+2 -2
include/asm-mips/system.h
··· 208 208 return retval; 209 209 } 210 210 211 - #ifdef CONFIG_MIPS64 211 + #ifdef CONFIG_64BIT 212 212 static inline __u64 __xchg_u64(volatile __u64 * m, __u64 val) 213 213 { 214 214 __u64 retval; ··· 330 330 return retval; 331 331 } 332 332 333 - #ifdef CONFIG_MIPS64 333 + #ifdef CONFIG_64BIT 334 334 static inline unsigned long __cmpxchg_u64(volatile int * m, unsigned long old, 335 335 unsigned long new) 336 336 {
+2 -2
include/asm-mips/thread_info.h
··· 62 62 #define current_thread_info() __current_thread_info 63 63 64 64 /* thread information allocation */ 65 - #if defined(CONFIG_PAGE_SIZE_4KB) && defined(CONFIG_MIPS32) 65 + #if defined(CONFIG_PAGE_SIZE_4KB) && defined(CONFIG_32BIT) 66 66 #define THREAD_SIZE_ORDER (1) 67 67 #endif 68 - #if defined(CONFIG_PAGE_SIZE_4KB) && defined(CONFIG_MIPS64) 68 + #if defined(CONFIG_PAGE_SIZE_4KB) && defined(CONFIG_64BIT) 69 69 #define THREAD_SIZE_ORDER (2) 70 70 #endif 71 71 #ifdef CONFIG_PAGE_SIZE_8KB
+1 -1
include/asm-mips/types.h
··· 78 78 #endif 79 79 80 80 #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \ 81 - || defined(CONFIG_MIPS64) 81 + || defined(CONFIG_64BIT) 82 82 typedef u64 dma_addr_t; 83 83 #else 84 84 typedef u32 dma_addr_t;
+4 -4
include/asm-mips/uaccess.h
··· 22 22 * 23 23 * For historical reasons, these macros are grossly misnamed. 24 24 */ 25 - #ifdef CONFIG_MIPS32 25 + #ifdef CONFIG_32BIT 26 26 27 27 #define __UA_LIMIT 0x80000000UL 28 28 ··· 32 32 #define __UA_t0 "$8" 33 33 #define __UA_t1 "$9" 34 34 35 - #endif /* CONFIG_MIPS32 */ 35 + #endif /* CONFIG_32BIT */ 36 36 37 - #ifdef CONFIG_MIPS64 37 + #ifdef CONFIG_64BIT 38 38 39 39 #define __UA_LIMIT (- TASK_SIZE) 40 40 ··· 44 44 #define __UA_t0 "$12" 45 45 #define __UA_t1 "$13" 46 46 47 - #endif /* CONFIG_MIPS64 */ 47 + #endif /* CONFIG_64BIT */ 48 48 49 49 /* 50 50 * USER_DS is a bitmask that has the bits set that may not be set in a valid
+1 -1
include/asm-mips/unistd.h
··· 1124 1124 # ifndef __mips64 1125 1125 # define __ARCH_WANT_STAT64 1126 1126 # endif 1127 - # ifdef CONFIG_MIPS32 1127 + # ifdef CONFIG_32BIT 1128 1128 # define __ARCH_WANT_SYS_TIME 1129 1129 # endif 1130 1130 # ifdef CONFIG_MIPS32_O32