aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/linkage.h
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-02-14 00:50:18 +0300
committerIngo Molnar <mingo@elte.hu>2009-02-19 17:12:59 +0100
commit95695547a7db44b88a7ee36cf5df188de267e99e (patch)
treebe7d9c8493dfa6315f4349015cef52d7dea808a8 /arch/x86/include/asm/linkage.h
parent9f361c221912b6ffa1f7836e0bbf843917f6fce7 (diff)
downloadkernel_samsung_tuna-95695547a7db44b88a7ee36cf5df188de267e99e.zip
kernel_samsung_tuna-95695547a7db44b88a7ee36cf5df188de267e99e.tar.gz
kernel_samsung_tuna-95695547a7db44b88a7ee36cf5df188de267e99e.tar.bz2
x86: asm linkage - introduce GLOBAL macro
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>
Diffstat (limited to 'arch/x86/include/asm/linkage.h')
-rw-r--r--arch/x86/include/asm/linkage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/linkage.h b/arch/x86/include/asm/linkage.h
index 5d98d0b..2ecf0f6 100644
--- a/arch/x86/include/asm/linkage.h
+++ b/arch/x86/include/asm/linkage.h
@@ -52,6 +52,10 @@
#endif
+#define GLOBAL(name) \
+ .globl name; \
+ name:
+
#ifdef CONFIG_X86_ALIGNMENT_16
#define __ALIGN .align 16,0x90
#define __ALIGN_STR ".align 16,0x90"