1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_LINKAGE_H
3 #define __ASM_LINKAGE_H
5 #include <linux/stringify.h>
7 #define __ALIGN .align 4, 0x07
8 #define __ALIGN_STR __stringify(__ALIGN)
13 * Helper macro for exception table entries
15 #define EX_TABLE(_fault, _target) \
16 ".section __ex_table,\"a\"\n" \
18 ".long (" #_fault ") - .\n" \
19 ".long (" #_target ") - .\n" \
22 #else /* __ASSEMBLY__ */
24 #define EX_TABLE(_fault, _target) \
25 .section __ex_table,"a" ; \
27 .long (_fault) - . ; \
28 .long (_target) - . ; \
31 #define EX_TABLE_DMA(_fault, _target) \
32 .section .dma.ex_table, "a" ; \
34 .long (_fault) - . ; \
35 .long (_target) - . ; \
38 #endif /* __ASSEMBLY__ */