diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-01-30 07:31:26 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:26 -0500 |
commit | 8ee5797a91bdb713b4031741b33bd035f9c43870 (patch) | |
tree | 1ce447909c7b2d43f88631180b72d67bd02d6f83 /include/asm-x86/asm.h | |
parent | 992b95920a311db3267659ea17160e4812a05830 (diff) |
x86: introduce asm helpers in local_{32|64}.h
Handle the use of long on X86_32 and quad on X86_64
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/asm.h')
-rw-r--r-- | include/asm-x86/asm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-x86/asm.h b/include/asm-x86/asm.h index 8661ae75488a..1a6980a60fc6 100644 --- a/include/asm-x86/asm.h +++ b/include/asm-x86/asm.h | |||
@@ -8,6 +8,12 @@ | |||
8 | # define _ASM_ALIGN " .balign 4 " | 8 | # define _ASM_ALIGN " .balign 4 " |
9 | # define _ASM_MOV_UL " movl " | 9 | # define _ASM_MOV_UL " movl " |
10 | 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 | |||
11 | #else | 17 | #else |
12 | /* 64 bits */ | 18 | /* 64 bits */ |
13 | 19 | ||
@@ -15,6 +21,12 @@ | |||
15 | # define _ASM_ALIGN " .balign 8 " | 21 | # define _ASM_ALIGN " .balign 8 " |
16 | # define _ASM_MOV_UL " movq " | 22 | # define _ASM_MOV_UL " movq " |
17 | 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 | |||
18 | #endif /* CONFIG_X86_32 */ | 30 | #endif /* CONFIG_X86_32 */ |
19 | 31 | ||
20 | #endif /* _ASM_X86_ASM_H */ | 32 | #endif /* _ASM_X86_ASM_H */ |