From: H. Peter Anvin Date: Mon, 4 Feb 2008 15:47:56 +0000 (+0100) Subject: x86: add _ASM_EXTABLE macro to X-Git-Tag: v2.6.25-rc1~1057^2~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a34746bc43eb63e545abf5eb002d96483a54ee32;p=karo-tx-linux.git x86: add _ASM_EXTABLE macro to 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/asm-x86/asm.h b/include/asm-x86/asm.h index 1a6980a60fc6..90dec0c23646 100644 --- a/include/asm-x86/asm.h +++ b/include/asm-x86/asm.h @@ -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 */