Linux Audio

Check our new training course

Loading...
v3.5.6
 1#ifndef _ASM_SH_MODULE_H
 2#define _ASM_SH_MODULE_H
 3
 4struct mod_arch_specific {
 
 5#ifdef CONFIG_DWARF_UNWINDER
 
 6	struct list_head fde_list;
 7	struct list_head cie_list;
 8#endif
 9};
10
11#ifdef CONFIG_64BIT
12#define Elf_Shdr Elf64_Shdr
13#define Elf_Sym Elf64_Sym
14#define Elf_Ehdr Elf64_Ehdr
15#else
16#define Elf_Shdr Elf32_Shdr
17#define Elf_Sym Elf32_Sym
18#define Elf_Ehdr Elf32_Ehdr
19#endif
20
21#ifdef CONFIG_CPU_LITTLE_ENDIAN
22# ifdef CONFIG_CPU_SH2
23#  define MODULE_PROC_FAMILY "SH2LE "
24# elif defined  CONFIG_CPU_SH3
25#  define MODULE_PROC_FAMILY "SH3LE "
26# elif defined  CONFIG_CPU_SH4
27#  define MODULE_PROC_FAMILY "SH4LE "
28# elif defined  CONFIG_CPU_SH5
29#  define MODULE_PROC_FAMILY "SH5LE "
30# else
31#  error unknown processor family
32# endif
33#else
34# ifdef CONFIG_CPU_SH2
35#  define MODULE_PROC_FAMILY "SH2BE "
36# elif defined  CONFIG_CPU_SH3
37#  define MODULE_PROC_FAMILY "SH3BE "
38# elif defined  CONFIG_CPU_SH4
39#  define MODULE_PROC_FAMILY "SH4BE "
40# elif defined  CONFIG_CPU_SH5
41#  define MODULE_PROC_FAMILY "SH5BE "
42# else
43#  error unknown processor family
44# endif
45#endif
46
47#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
48
49#endif /* _ASM_SH_MODULE_H */
v4.6
 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
 7struct 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 */