diff options
author | Richard Braun <rbraun@sceen.net> | 2012-11-09 22:05:35 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-11-09 22:06:21 +0100 |
commit | 7ac57ae95ef88c9b232314578df240bd20679993 (patch) | |
tree | f934a458df97e00ed079c4fdd7557abffcee3b6b /arch/x86/machine/asm.h | |
parent | 2e842bf0943e3f16eddb85fff842ecd73791d3cb (diff) |
x86: linker script and assembly tidying
Build with -fno-asynchronous-unwind-tables so that a .debug_frame
section is properly created, discard .eh_frame, and don't generate
xxx_end symbols when using ASM_END. Also, remove the unused ASM_IRET
macro.
Diffstat (limited to 'arch/x86/machine/asm.h')
-rw-r--r-- | arch/x86/machine/asm.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/arch/x86/machine/asm.h b/arch/x86/machine/asm.h index c2c4e99..6118bb8 100644 --- a/arch/x86/machine/asm.h +++ b/arch/x86/machine/asm.h @@ -18,9 +18,11 @@ #ifndef _X86_ASM_H #define _X86_ASM_H -#include <machine/param.h> +#ifndef __ASSEMBLER__ +#warning "asm.h included from a C file" +#endif /* __ASSEMBLER__ */ -#ifdef __ASSEMBLER__ +#include <machine/param.h> #define ASM_ENTRY(x) \ .align TEXT_ALIGN; \ @@ -35,15 +37,6 @@ x: x: #define ASM_END(x) \ -.size x, . - x; \ -x ## _end: - -#ifdef __LP64__ -#define ASM_IRET iretq -#else /* __LP64__ */ -#define ASM_IRET iret -#endif /* __LP64__ */ - -#endif /* __ASSEMBLER__ */ +.size x, . - x #endif /* _X86_ASM_H */ |