M68k Kconfig: - Make MMU configurable - Add FPU configuration - Add support for 68000/68008, 68010/68012, and CPU32 (embedded cores) - Add NOMMU configuration as a short-hand for !MMU (handy for Makefile lists) - 68000, 68010, and CPU don't support the CAS (Compare And Swap) instruction, so disable RMW_INSNS - Currently we support one chunk of memory only for MMUless configs --- Kconfig | 42 ++++++++++++++++++++++++++++++++++++++---- 1 files changed, 38 insertions(+), 4 deletions(-) --- linux-m68k-2.6.8.1+uc0/arch/m68k/Kconfig 2004-08-14 15:35:36.000000000 +0200 +++ uClinux-amiga-2.6.8.1/arch/m68k/Kconfig 2004-06-26 17:17:34.000000000 +0200 @@ -7,8 +7,15 @@ config M68K default y config MMU - bool - default y + bool "Support for memory management hardware" + ---help--- + Enable MMU support + +config FPU + bool "Support for floating point hardware" + default n if !MMU + ---help--- + Enable FPU support config UID16 bool @@ -230,6 +235,20 @@ config Q40 comment "Processor type" +config M68000 + bool "68000/68008 support" + depends on !MMU + help + If you anticipate running this kernel on a computer with a MC68000 + or MC68008 processor, say Y. Otherwise, say N. + +config M68010 + bool "68010/68012 support" + depends on !MMU + help + If you anticipate running this kernel on a computer with a MC68010 + or MC68012 processor, say Y. Otherwise, say N. + config M68020 bool "68020 support" help @@ -262,6 +281,13 @@ config M68060 If you anticipate running this kernel on a computer with a MC68060 processor, say Y. Otherwise, say N. +config MCPU32 + bool "CPU32 support" + depends on !MMU + help + If you anticipate running this kernel on a computer with a Motorola + CPU32 processor, say Y. Otherwise, say N. + config MMU_MOTOROLA bool depends on MMU && !MMU_SUN3 @@ -270,6 +296,11 @@ config MMU_MOTOROLA config MMU_SUN3 bool +config NOMMU + bool + depends on !MMU + default y + config M68KFPU_EMU bool "Math emulation support (EXPERIMENTAL)" depends on EXPERIMENTAL @@ -321,7 +402,7 @@ config ADVANCED config RMW_INSNS bool "Use read-modify-write instructions" - depends on ADVANCED + depends on ADVANCED && !M68000 && !M68010 && !MCPU32 ---help--- This allows to use certain instructions that work with indivisible read-modify-write bus cycles. While this is faster than the @@ -334,7 +374,8 @@ config RMW_INSNS config SINGLE_MEMORY_CHUNK bool "Use one physical chunk of memory only" - depends on ADVANCED && !SUN3 + depends on (ADVANCED && !SUN3) || !MMU + default y if !MMU help Ignore all but the first contiguous chunk of physical memory for VM purposes. This will save a few bytes kernel size and may speed up