Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95695547 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar
Browse files

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: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9f361c22
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -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"