diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-30 07:30:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:06 -0500 |
commit | e845c06bced7f5f325e0f9aefd3207cd45c21ff2 (patch) | |
tree | ca3902e4602af2903cc8d3e9936aebb69021477d /include/asm-x86 | |
parent | 39d44a51474a52bec6d72d30ebc76f5159101d90 (diff) |
x86: add <asm/asm.h>
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>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/asm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-x86/asm.h b/include/asm-x86/asm.h new file mode 100644 index 000000000000..b5006eb9acba --- /dev/null +++ b/include/asm-x86/asm.h | |||
@@ -0,0 +1,18 @@ | |||
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 | |||
10 | #else | ||
11 | /* 64 bits */ | ||
12 | |||
13 | # define _ASM_PTR " .quad " | ||
14 | # define _ASM_ALIGN " .balign 8 " | ||
15 | |||
16 | #endif /* CONFIG_X86_32 */ | ||
17 | |||
18 | #endif /* _ASM_X86_ASM_H */ | ||