module.h 1.1 KB

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