aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/Kconfig
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-26 18:35:16 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 18:35:16 -0500
commitfe6875ec5c3ca7f6bcb399b6649ba2b64744df51 (patch)
tree3a623ae3eb04a95fd707058398add8de42dc0242 /arch/sparc/Kconfig
parent6e6ab2e2f0083314265f90bf0aefefcb7a46c702 (diff)
sparc: introduce CONFIG_BITS
CONFIG_BITS is set to 32 for sparc32 and 64 for sparc64. This allow us to use this symbol in for example header files to ease unification of sparc32 and sparc64. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/Kconfig')
-rw-r--r--arch/sparc/Kconfig6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index c8c7738f2a32..cd8c585a6b02 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -46,7 +46,11 @@ config ARCH_DEFCONFIG
46 default "arch/sparc/configs/sparc32_defconfig" if SPARC32 46 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
47 default "arch/sparc/configs/sparc64_defconfig" if SPARC64 47 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
48 48
49 49# CONFIG_BITS can be used at source level to get 32/64 bits
50config BITS
51 int
52 default 32 if SPARC32
53 default 64 if SPARC64
50 54
51config 64BIT 55config 64BIT
52 def_bool y if SPARC64 56 def_bool y if SPARC64