]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: asm linkage - introduce GLOBAL macro
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 13 Feb 2009 21:50:18 +0000 (00:50 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 19 Feb 2009 16:12:59 +0000 (17:12 +0100)
If the code is time critical and this entry is called
from other places we use ENTRY to have it globally defined
and especially aligned.

Contrary we have some snippets which are size
critical. So we use plane ".globl name; name:"
directive. Introduce GLOBAL macro for this.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/linkage.h

index 5d98d0b68ffc8e08e07cf829ed15103f6fc09796..2ecf0f6fc9e6b3d561db2250714d5213236c6340 100644 (file)
 
 #endif
 
+#define GLOBAL(name)   \
+       .globl name;    \
+       name:
+
 #ifdef CONFIG_X86_ALIGNMENT_16
 #define __ALIGN .align 16,0x90
 #define __ALIGN_STR ".align 16,0x90"