summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/asm.h
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-01-30 13:31:26 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-30 13:31:26 +0100
commit8ee5797a91bdb713b4031741b33bd035f9c43870 (patch)
tree1ce447909c7b2d43f88631180b72d67bd02d6f83 /include/asm-x86/asm.h
parent992b95920a311db3267659ea17160e4812a05830 (diff)
downloadblackbird-op-linux-8ee5797a91bdb713b4031741b33bd035f9c43870.tar.gz
blackbird-op-linux-8ee5797a91bdb713b4031741b33bd035f9c43870.zip
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.h12
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 @@
# 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 */
@@ -15,6 +21,12 @@
# 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 */
OpenPOWER on IntegriCloud