x86: add <asm/asm.h>
authorH. Peter Anvin <hpa@zytor.com>
Wed, 30 Jan 2008 12:30:06 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:06 +0000 (13:30 +0100)
Create <asm/asm.h>, with common definitions suitable for assembly
unification.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/asm.h [new file with mode: 0644]

diff --git a/include/asm-x86/asm.h b/include/asm-x86/asm.h
new file mode 100644 (file)
index 0000000..b5006eb
--- /dev/null
@@ -0,0 +1,18 @@
+#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 "
+
+#else
+/* 64 bits */
+
+# define _ASM_PTR      " .quad "
+# define _ASM_ALIGN    " .balign 8 "
+
+#endif /* CONFIG_X86_32 */
+
+#endif /* _ASM_X86_ASM_H */