mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 05:17:45 +07:00
2e54dc3c7d
Move the EX_TABLE macro definitions from the processor.h to the linkage.h header file. It helps to reduce circular header file dependencies. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
32 lines
594 B
C
32 lines
594 B
C
#ifndef __ASM_LINKAGE_H
|
|
#define __ASM_LINKAGE_H
|
|
|
|
#include <linux/stringify.h>
|
|
|
|
#define __ALIGN .align 4, 0x07
|
|
#define __ALIGN_STR __stringify(__ALIGN)
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
/*
|
|
* Helper macro for exception table entries
|
|
*/
|
|
#define EX_TABLE(_fault, _target) \
|
|
".section __ex_table,\"a\"\n" \
|
|
".align 4\n" \
|
|
".long (" #_fault ") - .\n" \
|
|
".long (" #_target ") - .\n" \
|
|
".previous\n"
|
|
|
|
#else /* __ASSEMBLY__ */
|
|
|
|
#define EX_TABLE(_fault, _target) \
|
|
.section __ex_table,"a" ; \
|
|
.align 4 ; \
|
|
.long (_fault) - . ; \
|
|
.long (_target) - . ; \
|
|
.previous
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
#endif
|