x86 - hide X86_VM_MASK from userland programs v3
[linux-2.6/zen-sources.git] / include / asm-x86 / asm.h
blob90dec0c236469455821607eca77a5a86684af6d2
1 #ifndef _ASM_X86_ASM_H
2 #define _ASM_X86_ASM_H
4 #ifdef CONFIG_X86_32
5 /* 32 bits */
7 # define _ASM_PTR " .long "
8 # define _ASM_ALIGN " .balign 4 "
9 # define _ASM_MOV_UL " movl "
11 # define _ASM_INC " incl "
12 # define _ASM_DEC " decl "
13 # define _ASM_ADD " addl "
14 # define _ASM_SUB " subl "
15 # define _ASM_XADD " xaddl "
17 #else
18 /* 64 bits */
20 # define _ASM_PTR " .quad "
21 # define _ASM_ALIGN " .balign 8 "
22 # define _ASM_MOV_UL " movq "
24 # define _ASM_INC " incq "
25 # define _ASM_DEC " decq "
26 # define _ASM_ADD " addq "
27 # define _ASM_SUB " subq "
28 # define _ASM_XADD " xaddq "
30 #endif /* CONFIG_X86_32 */
32 /* Exception table entry */
33 # define _ASM_EXTABLE(from,to) \
34 " .section __ex_table,\"a\"\n" \
35 _ASM_ALIGN "\n" \
36 _ASM_PTR #from "," #to "\n" \
37 " .previous\n"
39 #endif /* _ASM_X86_ASM_H */