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
;
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 "
24 # error unknown processor family
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 "
36 # error unknown processor family
40 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
42 #endif /* _ASM_SH_MODULE_H */