Skip to contentSkip to conversation

add CONFIG_MMU and CONFIG_SWAP

PATCH In review Christoph Hellwig 2 participants 3 messages Nov 3, 2002 – Nov 7, 2002

Subsystems (9)
Arm (32-bit) MIPS s390 SuperH +5 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add CONFIG_MMU and CONFIG_SWAP

Now that m68knommu and v850 are merged we need all other architectures to define CONFIG_SWAP and CONFIG_MMU so that we can make code conditional on it.

arch/alpha/Kconfig +8 -0
@@ -12,6 +12,14 @@
 	  port. The Alpha Linux project has a home page at
 	  <http://www.alphalinux.org/>.
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 
arch/arm/Kconfig +8 -0
@@ -16,6 +16,14 @@
 	  Europe.  There is an ARM Linux project with a web page at
 	  <http://www.arm.linux.org.uk/>.
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config EISA
 	bool
 	---help---
arch/cris/Kconfig +8 -0
@@ -5,6 +5,14 @@
 
 mainmenu "Linux/CRIS Kernel Configuration"
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 	default y
arch/i386/Kconfig +8 -0
@@ -14,6 +14,14 @@
 	  486, 586, Pentiums, and various instruction-set-compatible chips by
 	  AMD, Cyrix, and others.
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config SBUS
 	bool
 
arch/ia64/Kconfig +8 -0
@@ -13,6 +13,14 @@
 	  page at <http://www.linuxia64.org/> and a mailing list at
 	  [email protected].
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config RWSEM_GENERIC_SPINLOCK
 	bool
 	default y
arch/m68k/Kconfig +8 -0
@@ -6,6 +6,14 @@
 	bool
 	default y
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 	default y
arch/mips/Kconfig +8 -0
@@ -6,6 +6,14 @@
 	bool
 	default y
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config SMP
 	bool
 	---help---
arch/mips64/Kconfig +8 -0
@@ -5,6 +5,14 @@
 
 mainmenu "Linux Kernel Configuration"
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 source "init/Kconfig"
 
 
arch/parisc/Kconfig +8 -0
@@ -13,6 +13,14 @@
 	  Hewlett-Packard and used in their line of workstations.  The PA-RISC
 	  Linux project has a home page at <www.parisc-linux.org>.
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 
arch/ppc/Kconfig +9 -0
@@ -1,6 +1,15 @@
 # For a description of the syntax of this configuration file,
 # see Documentation/kbuild/config-language.txt.
 #
+
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 
arch/ppc64/Kconfig +9 -0
@@ -2,6 +2,15 @@
 # For a description of the syntax of this configuration file,
 # see Documentation/kbuild/config-language.txt.
 #
+
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 
arch/s390/Kconfig +9 -0
@@ -2,6 +2,15 @@
 # For a description of the syntax of this configuration file,
 # see Documentation/kbuild/config-language.txt.
 #
+
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config ISA
 	bool
 	help
arch/s390x/Kconfig +9 -0
@@ -2,6 +2,15 @@
 # For a description of the syntax of this configuration file,
 # see Documentation/kbuild/config-language.txt.
 #
+
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config ISA
 	bool
 	help
arch/sh/Kconfig +8 -0
@@ -14,6 +14,14 @@
 	  gaming console.  The SuperH port has a home page at
 	  <http://www.sh-linux.org/>.
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 	default y
arch/sparc/Kconfig +8 -0
@@ -5,6 +5,14 @@
 
 mainmenu "Linux/SPARC Kernel Configuration"
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config UID16
 	bool
 	default y
arch/sparc64/Kconfig +8 -0
@@ -5,6 +5,14 @@
 
 mainmenu "Linux/UltraSPARC Kernel Configuration"
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 source "init/Kconfig"
 
 
arch/um/Kconfig +8 -0
@@ -2,6 +2,14 @@
 	bool
 	default y
 
+# XXX: does UM have a mmu/swap?
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
 
 mainmenu "Linux/Usermode Kernel Configuration"
 
arch/x86_64/Kconfig +8 -0
@@ -25,6 +25,14 @@
 	  486, 586, Pentiums, and various instruction-set-compatible chips by
 	  AMD, Cyrix, and others.
 
+config MMU
+	bool
+	default y
+
+config SWAP
+	bool
+	default y
+
 config ISA
 	bool
 	help
#1 lore raw
Quoted 3 lines · [email protected] said:

Now that m68knommu and v850 are merged we need all other
architectures to define CONFIG_SWAP and CONFIG_MMU so that we can make code conditional on it.

Er, can we have CONFIG_SWAP conditional on other architectures too?

--
dwmw2

#2 lore raw
Quoted 7 lines · David Woodhouse
Quoted 3 lines · [email protected] said:

Now that m68knommu and v850 are merged we need all other
architectures to define CONFIG_SWAP and CONFIG_MMU so that we can make code conditional on it.

Er, can we have CONFIG_SWAP conditional on other architectures too?

Sure, submit a patch once you tested your particular architecture.