Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_SH_MODULE_H
3#define _ASM_SH_MODULE_H
4
5#include <asm-generic/module.h>
6
7#ifdef CONFIG_DWARF_UNWINDER
8struct mod_arch_specific {
9 struct list_head fde_list;
10 struct list_head cie_list;
11};
12#endif
13
14#endif /* _ASM_SH_MODULE_H */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_SH_MODULE_H
3#define _ASM_SH_MODULE_H
4
5#include <asm-generic/module.h>
6
7#ifdef CONFIG_DWARF_UNWINDER
8struct mod_arch_specific {
9 struct list_head fde_list;
10 struct list_head cie_list;
11};
12#endif
13
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
39
40#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
41
42#endif /* _ASM_SH_MODULE_H */