From: Cyrill Gorcunov Date: Fri, 13 Feb 2009 21:50:18 +0000 (+0300) Subject: x86: asm linkage - introduce GLOBAL macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95695547a7db44b88a7ee36cf5df188de267e99e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/include/asm/linkage.h b/arch/x86/include/asm/linkage.h index 5d98d0b68ff..2ecf0f6fc9e 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"