Skip to content

Commit

Permalink
x86: add _ASM_EXTABLE macro to <asm/asm.h>
Browse files Browse the repository at this point in the history
Instead of open-coding the __ex_table information at each callsite,
construct a common macro that can work regardless of CPU size.

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 Feb 4, 2008
1 parent 1622ac2 commit a34746b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/asm-x86/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@

#endif /* CONFIG_X86_32 */

/* Exception table entry */
# define _ASM_EXTABLE(from,to) \
" .section __ex_table,\"a\"\n" \
_ASM_ALIGN "\n" \
_ASM_PTR #from "," #to "\n" \
" .previous\n"

#endif /* _ASM_X86_ASM_H */

0 comments on commit a34746b

Please sign in to comment.