diff options
| -rw-r--r-- | arch/x86/include/asm/linkage.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/x86/include/asm/linkage.h b/arch/x86/include/asm/linkage.h index 9320e2a8a26a..a0d70b46c27c 100644 --- a/arch/x86/include/asm/linkage.h +++ b/arch/x86/include/asm/linkage.h | |||
| @@ -4,11 +4,6 @@ | |||
| 4 | #undef notrace | 4 | #undef notrace |
| 5 | #define notrace __attribute__((no_instrument_function)) | 5 | #define notrace __attribute__((no_instrument_function)) |
| 6 | 6 | ||
| 7 | #ifdef CONFIG_X86_64 | ||
| 8 | #define __ALIGN .p2align 4,,15 | ||
| 9 | #define __ALIGN_STR ".p2align 4,,15" | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #ifdef CONFIG_X86_32 | 7 | #ifdef CONFIG_X86_32 |
| 13 | #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0))) | 8 | #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0))) |
| 14 | /* | 9 | /* |
| @@ -50,16 +45,25 @@ | |||
| 50 | __asmlinkage_protect_n(ret, "g" (arg1), "g" (arg2), "g" (arg3), \ | 45 | __asmlinkage_protect_n(ret, "g" (arg1), "g" (arg2), "g" (arg3), \ |
| 51 | "g" (arg4), "g" (arg5), "g" (arg6)) | 46 | "g" (arg4), "g" (arg5), "g" (arg6)) |
| 52 | 47 | ||
| 53 | #endif | 48 | #endif /* CONFIG_X86_32 */ |
| 49 | |||
| 50 | #ifdef __ASSEMBLY__ | ||
| 54 | 51 | ||
| 55 | #define GLOBAL(name) \ | 52 | #define GLOBAL(name) \ |
| 56 | .globl name; \ | 53 | .globl name; \ |
| 57 | name: | 54 | name: |
| 58 | 55 | ||
| 56 | #ifdef CONFIG_X86_64 | ||
| 57 | #define __ALIGN .p2align 4,,15 | ||
| 58 | #define __ALIGN_STR ".p2align 4,,15" | ||
| 59 | #endif | ||
| 60 | |||
| 59 | #ifdef CONFIG_X86_ALIGNMENT_16 | 61 | #ifdef CONFIG_X86_ALIGNMENT_16 |
| 60 | #define __ALIGN .align 16,0x90 | 62 | #define __ALIGN .align 16,0x90 |
| 61 | #define __ALIGN_STR ".align 16,0x90" | 63 | #define __ALIGN_STR ".align 16,0x90" |
| 62 | #endif | 64 | #endif |
| 63 | 65 | ||
| 66 | #endif /* __ASSEMBLY__ */ | ||
| 67 | |||
| 64 | #endif /* _ASM_X86_LINKAGE_H */ | 68 | #endif /* _ASM_X86_LINKAGE_H */ |
| 65 | 69 | ||
