Commit a34746bc authored by H. Peter Anvin's avatar H. Peter Anvin Committed by Ingo Molnar
Browse files

x86: add _ASM_EXTABLE macro to <asm/asm.h>



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: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 1622ac23
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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 */