2008-01-30 13:30:06 +01:00
|
|
|
#ifndef _ASM_X86_ASM_H
|
|
|
|
#define _ASM_X86_ASM_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
/* 32 bits */
|
|
|
|
|
|
|
|
# define _ASM_PTR " .long "
|
|
|
|
# define _ASM_ALIGN " .balign 4 "
|
2008-01-30 13:30:38 +01:00
|
|
|
# define _ASM_MOV_UL " movl "
|
2008-01-30 13:30:06 +01:00
|
|
|
|
2008-01-30 13:31:26 +01:00
|
|
|
# define _ASM_INC " incl "
|
|
|
|
# define _ASM_DEC " decl "
|
|
|
|
# define _ASM_ADD " addl "
|
|
|
|
# define _ASM_SUB " subl "
|
|
|
|
# define _ASM_XADD " xaddl "
|
|
|
|
|
2008-01-30 13:30:06 +01:00
|
|
|
#else
|
|
|
|
/* 64 bits */
|
|
|
|
|
|
|
|
# define _ASM_PTR " .quad "
|
|
|
|
# define _ASM_ALIGN " .balign 8 "
|
2008-01-30 13:30:38 +01:00
|
|
|
# define _ASM_MOV_UL " movq "
|
2008-01-30 13:30:06 +01:00
|
|
|
|
2008-01-30 13:31:26 +01:00
|
|
|
# define _ASM_INC " incq "
|
|
|
|
# define _ASM_DEC " decq "
|
|
|
|
# define _ASM_ADD " addq "
|
|
|
|
# define _ASM_SUB " subq "
|
|
|
|
# define _ASM_XADD " xaddq "
|
|
|
|
|
2008-01-30 13:30:06 +01:00
|
|
|
#endif /* CONFIG_X86_32 */
|
|
|
|
|
|
|
|
#endif /* _ASM_X86_ASM_H */
|