License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / metag / include / asm / module.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_METAG_MODULE_H
3 #define _ASM_METAG_MODULE_H
4
5 #include <asm-generic/module.h>
6
7 struct metag_plt_entry {
8         /* Indirect jump instruction sequence. */
9         unsigned long tramp[2];
10 };
11
12 struct mod_arch_specific {
13         /* Indices of PLT sections within module. */
14         unsigned int core_plt_section, init_plt_section;
15 };
16
17 #if defined CONFIG_METAG_META12
18 #define MODULE_PROC_FAMILY "META 1.2 "
19 #elif defined CONFIG_METAG_META21
20 #define MODULE_PROC_FAMILY "META 2.1 "
21 #else
22 #define MODULE_PROC_FAMILY ""
23 #endif
24
25 #ifdef CONFIG_4KSTACKS
26 #define MODULE_STACKSIZE "4KSTACKS "
27 #else
28 #define MODULE_STACKSIZE ""
29 #endif
30
31 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE
32
33 #ifdef MODULE
34 asm(".section .plt,\"ax\",@progbits; .balign 8; .previous");
35 asm(".section .init.plt,\"ax\",@progbits; .balign 8; .previous");
36 #endif
37
38 #endif /* _ASM_METAG_MODULE_H */