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>
This commit is contained in:
parent
39d44a5147
commit
e845c06bce
18
include/asm-x86/asm.h
Normal file
18
include/asm-x86/asm.h
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user