Skip to content

Commit 9569554

Browse files
cyrillosIngo Molnar
authored andcommitted
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>
1 parent 9f361c2 commit 9569554

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/x86/include/asm/linkage.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252

5353
#endif
5454

55+
#define GLOBAL(name) \
56+
.globl name; \
57+
name:
58+
5559
#ifdef CONFIG_X86_ALIGNMENT_16
5660
#define __ALIGN .align 16,0x90
5761
#define __ALIGN_STR ".align 16,0x90"

0 commit comments

Comments
 (0)