blob: 1a6980a60fc6ef0717ed432480f06b7534e5328a [file] [log] [blame]
H. Peter Anvine845c062008-01-30 13:30:06 +01001#ifndef _ASM_X86_ASM_H
2#define _ASM_X86_ASM_H
3
4#ifdef CONFIG_X86_32
5/* 32 bits */
6
7# define _ASM_PTR " .long "
8# define _ASM_ALIGN " .balign 4 "
Thomas Gleixner3578fac2008-01-30 13:30:38 +01009# define _ASM_MOV_UL " movl "
H. Peter Anvine845c062008-01-30 13:30:06 +010010
Harvey Harrison8ee57972008-01-30 13:31:26 +010011# define _ASM_INC " incl "
12# define _ASM_DEC " decl "
13# define _ASM_ADD " addl "
14# define _ASM_SUB " subl "
15# define _ASM_XADD " xaddl "
16
H. Peter Anvine845c062008-01-30 13:30:06 +010017#else
18/* 64 bits */
19
20# define _ASM_PTR " .quad "
21# define _ASM_ALIGN " .balign 8 "
Thomas Gleixner3578fac2008-01-30 13:30:38 +010022# define _ASM_MOV_UL " movq "
H. Peter Anvine845c062008-01-30 13:30:06 +010023
Harvey Harrison8ee57972008-01-30 13:31:26 +010024# define _ASM_INC " incq "
25# define _ASM_DEC " decq "
26# define _ASM_ADD " addq "
27# define _ASM_SUB " subq "
28# define _ASM_XADD " xaddq "
29
H. Peter Anvine845c062008-01-30 13:30:06 +010030#endif /* CONFIG_X86_32 */
31
32#endif /* _ASM_X86_ASM_H */