diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-03-09 13:19:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-11 07:39:28 -0400 |
commit | bb7f5f6c26d0a304fb3af92591a1dddd39b6ac61 (patch) | |
tree | eab4a26c5cf0f37dc02e24056182369e89665ca4 /arch/x86/include/asm/linkage.h | |
parent | 78b020d035074fc3aa4d017353bb2c32e2aff56f (diff) |
x86: shrink __ALIGN and __ALIGN_STR definitions
Impact: cleanup
1) .p2align 4 and .align 16 are the same meaning
(until a.out format for i386 is used which is
not our case for CONFIG_X86_ALIGNMENT_16 anyway)
2) having 15 as max allowed bytes to be skipped
does not make sense on modulo 16
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
LKML-Reference: <20090309171951.GE9945@localhost>
[ small cleanup, use __stringify(), etc. ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/linkage.h')
-rw-r--r-- | arch/x86/include/asm/linkage.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/x86/include/asm/linkage.h b/arch/x86/include/asm/linkage.h index a0d70b46c27c..12d55e773eb6 100644 --- a/arch/x86/include/asm/linkage.h +++ b/arch/x86/include/asm/linkage.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _ASM_X86_LINKAGE_H | 1 | #ifndef _ASM_X86_LINKAGE_H |
2 | #define _ASM_X86_LINKAGE_H | 2 | #define _ASM_X86_LINKAGE_H |
3 | 3 | ||
4 | #include <linux/stringify.h> | ||
5 | |||
4 | #undef notrace | 6 | #undef notrace |
5 | #define notrace __attribute__((no_instrument_function)) | 7 | #define notrace __attribute__((no_instrument_function)) |
6 | 8 | ||
@@ -53,14 +55,9 @@ | |||
53 | .globl name; \ | 55 | .globl name; \ |
54 | name: | 56 | name: |
55 | 57 | ||
56 | #ifdef CONFIG_X86_64 | 58 | #if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16) |
57 | #define __ALIGN .p2align 4,,15 | 59 | #define __ALIGN .p2align 4, 0x90 |
58 | #define __ALIGN_STR ".p2align 4,,15" | 60 | #define __ALIGN_STR __stringify(__ALIGN) |
59 | #endif | ||
60 | |||
61 | #ifdef CONFIG_X86_ALIGNMENT_16 | ||
62 | #define __ALIGN .align 16,0x90 | ||
63 | #define __ALIGN_STR ".align 16,0x90" | ||
64 | #endif | 61 | #endif |
65 | 62 | ||
66 | #endif /* __ASSEMBLY__ */ | 63 | #endif /* __ASSEMBLY__ */ |