diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 02:29:41 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 02:30:32 -0500 |
commit | c1f3ee120bb61045b1c0a3ead620d1d65af47130 (patch) | |
tree | 908430bf2b47fe8e96ac623ae7ab6dd5698d0938 /include/asm-x86/asm.h | |
parent | e619a75ff6201b567a539e787aa9af9bc63a3187 (diff) | |
parent | 9135f1901ee6449dfe338adf6e40e9c2025b8150 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'include/asm-x86/asm.h')
-rw-r--r-- | include/asm-x86/asm.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/asm-x86/asm.h b/include/asm-x86/asm.h new file mode 100644 index 000000000000..1a6980a60fc6 --- /dev/null +++ b/include/asm-x86/asm.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #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 " | ||
9 | # define _ASM_MOV_UL " movl " | ||
10 | |||
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 " | ||
16 | |||
17 | #else | ||
18 | /* 64 bits */ | ||
19 | |||
20 | # define _ASM_PTR " .quad " | ||
21 | # define _ASM_ALIGN " .balign 8 " | ||
22 | # define _ASM_MOV_UL " movq " | ||
23 | |||
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 " | ||
29 | |||
30 | #endif /* CONFIG_X86_32 */ | ||
31 | |||
32 | #endif /* _ASM_X86_ASM_H */ | ||