[patch 07/12] Sparc create asm.h

From: Mathieu Desnoyers
Date: Thu Sep 24 2009 - 10:43:02 EST


Create a assembly compatibility header for sparc32/64.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
CC: David S. Miller <davem@xxxxxxxxxxxxx>
---
arch/sparc/include/asm/asm.h | 11 +++++++++++
1 file changed, 11 insertions(+)

Index: linux-2.6-lttng/arch/sparc/include/asm/asm.h
===================================================================
--- linux-2.6-lttng.orig/arch/sparc/include/asm/asm.h 2009-09-24 08:42:17.000000000 -0400
+++ linux-2.6-lttng/arch/sparc/include/asm/asm.h 2009-09-24 08:49:13.000000000 -0400
@@ -18,6 +18,7 @@
brnz,PREDICT REG, DEST
#define BRANCH_REG_NOT_ZERO_ANNUL(PREDICT, REG, DEST) \
brnz,a,PREDICT REG, DEST
+#define __ASM_SEL(a, b) __ASM_FORM(b)
#else
#define BRANCH32(TYPE, PREDICT, DEST) \
TYPE DEST
@@ -35,6 +36,16 @@
#define BRANCH_REG_NOT_ZERO_ANNUL(PREDICT, REG, DEST) \
cmp REG, 0; \
bne,a DEST
+#define __ASM_SEL(a, b) __ASM_FORM(a)
#endif

+#ifdef __ASSEMBLY__
+#define __ASM_FORM(x) x
+#else
+#define __ASM_FORM(x) " " #x " "
+#endif
+
+#define _ASM_PTR __ASM_SEL(.word, .xword)
+#define _ASM_UAPTR __ASM_SEL(.uaword, .uaxword)
+
#endif /* _SPARC_ASM_H */

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/