2005-04-17 05:20:36 +07:00
|
|
|
#ifndef _ASM_SH_MODULE_H
|
|
|
|
#define _ASM_SH_MODULE_H
|
|
|
|
|
2012-09-28 12:01:03 +07:00
|
|
|
#include <asm-generic/module.h>
|
|
|
|
|
2010-02-07 19:40:36 +07:00
|
|
|
#ifdef CONFIG_DWARF_UNWINDER
|
2012-09-28 12:01:03 +07:00
|
|
|
struct mod_arch_specific {
|
2010-02-07 19:40:36 +07:00
|
|
|
struct list_head fde_list;
|
|
|
|
struct list_head cie_list;
|
|
|
|
};
|
|
|
|
#endif
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_LITTLE_ENDIAN
|
|
|
|
# ifdef CONFIG_CPU_SH2
|
|
|
|
# define MODULE_PROC_FAMILY "SH2LE "
|
|
|
|
# elif defined CONFIG_CPU_SH3
|
|
|
|
# define MODULE_PROC_FAMILY "SH3LE "
|
|
|
|
# elif defined CONFIG_CPU_SH4
|
|
|
|
# define MODULE_PROC_FAMILY "SH4LE "
|
2007-11-08 16:54:58 +07:00
|
|
|
# elif defined CONFIG_CPU_SH5
|
|
|
|
# define MODULE_PROC_FAMILY "SH5LE "
|
2005-04-17 05:20:36 +07:00
|
|
|
# else
|
|
|
|
# error unknown processor family
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# ifdef CONFIG_CPU_SH2
|
|
|
|
# define MODULE_PROC_FAMILY "SH2BE "
|
|
|
|
# elif defined CONFIG_CPU_SH3
|
|
|
|
# define MODULE_PROC_FAMILY "SH3BE "
|
|
|
|
# elif defined CONFIG_CPU_SH4
|
|
|
|
# define MODULE_PROC_FAMILY "SH4BE "
|
2007-11-08 16:54:58 +07:00
|
|
|
# elif defined CONFIG_CPU_SH5
|
|
|
|
# define MODULE_PROC_FAMILY "SH5BE "
|
2005-04-17 05:20:36 +07:00
|
|
|
# else
|
|
|
|
# error unknown processor family
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
|
|
|
|
|
|
|
|
#endif /* _ASM_SH_MODULE_H */
|