summaryrefslogtreecommitdiff
path: root/include/asm-x86/asm.h
blob: 1a6980a60fc6ef0717ed432480f06b7534e5328a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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 "
# define _ASM_MOV_UL	" movl "

# define _ASM_INC	" incl "
# define _ASM_DEC	" decl "
# define _ASM_ADD	" addl "
# define _ASM_SUB	" subl "
# define _ASM_XADD	" xaddl "

#else
/* 64 bits */

# define _ASM_PTR	" .quad "
# define _ASM_ALIGN	" .balign 8 "
# define _ASM_MOV_UL	" movq "

# define _ASM_INC	" incq "
# define _ASM_DEC	" decq "
# define _ASM_ADD	" addq "
# define _ASM_SUB	" subq "
# define _ASM_XADD	" xaddq "

#endif /* CONFIG_X86_32 */

#endif /* _ASM_X86_ASM_H */