xref: /openbmc/linux/arch/sh/include/asm/module.h (revision 94cdda6b)
1 #ifndef _ASM_SH_MODULE_H
2 #define _ASM_SH_MODULE_H
3 
4 #include <asm-generic/module.h>
5 
6 #ifdef CONFIG_DWARF_UNWINDER
7 struct mod_arch_specific {
8 	struct list_head fde_list;
9 	struct list_head cie_list;
10 };
11 #endif
12 
13 #ifdef CONFIG_CPU_LITTLE_ENDIAN
14 # ifdef CONFIG_CPU_SH2
15 #  define MODULE_PROC_FAMILY "SH2LE "
16 # elif defined  CONFIG_CPU_SH3
17 #  define MODULE_PROC_FAMILY "SH3LE "
18 # elif defined  CONFIG_CPU_SH4
19 #  define MODULE_PROC_FAMILY "SH4LE "
20 # elif defined  CONFIG_CPU_SH5
21 #  define MODULE_PROC_FAMILY "SH5LE "
22 # else
23 #  error unknown processor family
24 # endif
25 #else
26 # ifdef CONFIG_CPU_SH2
27 #  define MODULE_PROC_FAMILY "SH2BE "
28 # elif defined  CONFIG_CPU_SH3
29 #  define MODULE_PROC_FAMILY "SH3BE "
30 # elif defined  CONFIG_CPU_SH4
31 #  define MODULE_PROC_FAMILY "SH4BE "
32 # elif defined  CONFIG_CPU_SH5
33 #  define MODULE_PROC_FAMILY "SH5BE "
34 # else
35 #  error unknown processor family
36 # endif
37 #endif
38 
39 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
40 
41 #endif /* _ASM_SH_MODULE_H */
42