]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/s390/include/asm/linkage.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/linux.git] / arch / s390 / include / asm / linkage.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef __ASM_LINKAGE_H
3#define __ASM_LINKAGE_H
4
144d634a
JG
5#include <linux/stringify.h>
6
7#define __ALIGN .align 4, 0x07
8#define __ALIGN_STR __stringify(__ALIGN)
1da177e4 9
2e54dc3c
HB
10#ifndef __ASSEMBLY__
11
12/*
13 * Helper macro for exception table entries
14 */
15#define EX_TABLE(_fault, _target) \
16 ".section __ex_table,\"a\"\n" \
17 ".align 4\n" \
18 ".long (" #_fault ") - .\n" \
19 ".long (" #_target ") - .\n" \
20 ".previous\n"
21
22#else /* __ASSEMBLY__ */
23
24#define EX_TABLE(_fault, _target) \
25 .section __ex_table,"a" ; \
26 .align 4 ; \
27 .long (_fault) - . ; \
28 .long (_target) - . ; \
29 .previous
30
31#endif /* __ASSEMBLY__ */
1da177e4 32#endif