Skip to content

Commit

Permalink
x86: add <asm/asm.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin authored and Ingo Molnar committed Jan 30, 2008
1 parent 39d44a5 commit e845c06
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/asm-x86/asm.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit e845c06

Please sign in to comment.