X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-m32r%2Fassembler.h;h=e1dff9d6baadb74f23beed3c0a5ab25291d7f3f2;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=bdb52a5478307a8831fa4766679f0357fe282719;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-m32r/assembler.h b/include/asm-m32r/assembler.h index bdb52a547..e1dff9d6b 100644 --- a/include/asm-m32r/assembler.h +++ b/include/asm-m32r/assembler.h @@ -1,20 +1,33 @@ #ifndef _ASM_M32R_ASSEMBLER_H #define _ASM_M32R_ASSEMBLER_H -/* $Id$ */ - /* * linux/asm-m32r/assembler.h * - * This file contains M32R architecture specific defines. + * Copyright (C) 2004 Hirokazu Takata * - * Do not include any C declarations in this file - it is included by - * assembler source. + * This file contains M32R architecture specific macro definitions. */ #include +#ifndef __STR +#ifdef __ASSEMBLY__ +#define __STR(x) x +#else +#define __STR(x) #x +#endif +#endif /* __STR */ + +#ifdef CONFIG_SMP +#define M32R_LOCK __STR(lock) +#define M32R_UNLOCK __STR(unlock) +#else +#define M32R_LOCK __STR(ld) +#define M32R_UNLOCK __STR(st) +#endif +#ifdef __ASSEMBLY__ #undef ENTRY #define ENTRY(name) ENTRY_M name .macro ENTRY_M name @@ -22,12 +35,13 @@ ALIGN \name: .endm +#endif -/* - * LDIMM: load immediate value - * - * STI: enable interruption - * CLI: disable interruption + +/** + * LDIMM - load immediate value + * STI - enable interruption + * CLI - disable interruption */ #ifdef __ASSEMBLY__ @@ -209,4 +223,3 @@ #endif /* __ASSEMBLY__ */ #endif /* _ASM_M32R_ASSEMBLER_H */ -