Messages in this thread Patch in this message | | | Date | Thu, 24 Sep 2009 09:26:33 -0400 | From | Mathieu Desnoyers <> | Subject | [patch 07/12] Sparc create asm.h |
| |
Create a assembly compatibility header for sparc32/64.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> CC: David S. Miller <davem@davemloft.net> --- 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
| |