diff options
author | Jan Beulich <JBeulich@novell.com> | 2009-11-27 16:06:16 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-02 11:39:45 +0100 |
commit | 99063c0bcebcc913165a5d168050326eba3e0996 (patch) | |
tree | a5a99bd264b06fa06936ee863e9778eaa775caa6 /arch/x86/include/asm/alternative-asm.h | |
parent | x86/alternatives: Check replacementlen <= instrlen at build time (diff) | |
download | linux-99063c0bcebcc913165a5d168050326eba3e0996.tar.xz linux-99063c0bcebcc913165a5d168050326eba3e0996.zip |
x86/alternatives: No need for alternatives-asm.h to re-invent stuff already in asm.h
This at once also gets the alignment specification right for
x86-64.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <4B0FF8F80200007800022708@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/alternative-asm.h')
-rw-r--r-- | arch/x86/include/asm/alternative-asm.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/include/asm/alternative-asm.h b/arch/x86/include/asm/alternative-asm.h index e2077d343c33..b97f786a48d5 100644 --- a/arch/x86/include/asm/alternative-asm.h +++ b/arch/x86/include/asm/alternative-asm.h @@ -1,17 +1,13 @@ #ifdef __ASSEMBLY__ -#ifdef CONFIG_X86_32 -# define X86_ALIGN .long -#else -# define X86_ALIGN .quad -#endif +#include <asm/asm.h> #ifdef CONFIG_SMP .macro LOCK_PREFIX 1: lock .section .smp_locks,"a" - .align 4 - X86_ALIGN 1b + _ASM_ALIGN + _ASM_PTR 1b .previous .endm #else |