Skip to contentSkip to conversation

sparc: introduce CONFIG_BITS

PATCH Applied Sam Ravnborg 2 participants 2 messages Dec 22, 2008 – Dec 26, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 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.

---
 arch/sparc/Kconfig |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
arch/sparc/Kconfig +5 -1
index c8c7738..cd8c585 100644
@@ -46,7 +46,11 @@ config ARCH_DEFCONFIG
 	default "arch/sparc/configs/sparc32_defconfig" if SPARC32
 	default "arch/sparc/configs/sparc64_defconfig" if SPARC64
 
-
+# CONFIG_BITS can be used at source level to get 32/64 bits
+config BITS
+	int
+	default 32 if SPARC32
+	default 64 if SPARC64
 
 config 64BIT
 	def_bool y if SPARC64
Signature · 1 line
1.6.0.2.GIT
maintainer Applied
#1 lore raw

From: Sam Ravnborg <[email protected]>
Date: Mon, 22 Dec 2008 23:14:15 +0100

Quoted 7 lines

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.

Applied.