Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sh / include / asm / module.h
blob9f38fb35fe96cae9672fb2bf0e579431403722c2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SH_MODULE_H
3 #define _ASM_SH_MODULE_H
5 #include <asm-generic/module.h>
7 #ifdef CONFIG_DWARF_UNWINDER
8 struct mod_arch_specific {
9 struct list_head fde_list;
10 struct list_head cie_list;
12 #endif
14 #ifdef CONFIG_CPU_LITTLE_ENDIAN
15 # ifdef CONFIG_CPU_SH2
16 # define MODULE_PROC_FAMILY "SH2LE "
17 # elif defined CONFIG_CPU_SH3
18 # define MODULE_PROC_FAMILY "SH3LE "
19 # elif defined CONFIG_CPU_SH4
20 # define MODULE_PROC_FAMILY "SH4LE "
21 # elif defined CONFIG_CPU_SH5
22 # define MODULE_PROC_FAMILY "SH5LE "
23 # else
24 # error unknown processor family
25 # endif
26 #else
27 # ifdef CONFIG_CPU_SH2
28 # define MODULE_PROC_FAMILY "SH2BE "
29 # elif defined CONFIG_CPU_SH3
30 # define MODULE_PROC_FAMILY "SH3BE "
31 # elif defined CONFIG_CPU_SH4
32 # define MODULE_PROC_FAMILY "SH4BE "
33 # elif defined CONFIG_CPU_SH5
34 # define MODULE_PROC_FAMILY "SH5BE "
35 # else
36 # error unknown processor family
37 # endif
38 #endif
40 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
42 #endif /* _ASM_SH_MODULE_H */