소스 검색

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>
Cyrill Gorcunov 17 년 전
부모
커밋
95695547a7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      arch/x86/include/asm/linkage.h

+ 4 - 0
arch/x86/include/asm/linkage.h

@@ -52,6 +52,10 @@
 
 
 #endif
 #endif
 
 
+#define GLOBAL(name)	\
+	.globl name;	\
+	name:
+
 #ifdef CONFIG_X86_ALIGNMENT_16
 #ifdef CONFIG_X86_ALIGNMENT_16
 #define __ALIGN .align 16,0x90
 #define __ALIGN .align 16,0x90
 #define __ALIGN_STR ".align 16,0x90"
 #define __ALIGN_STR ".align 16,0x90"