module.h 990 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _ASM_SCORE_MODULE_H
  2. #define _ASM_SCORE_MODULE_H
  3. #include <linux/list.h>
  4. #include <asm/uaccess.h>
  5. struct mod_arch_specific {
  6. /* Data Bus Error exception tables */
  7. struct list_head dbe_list;
  8. const struct exception_table_entry *dbe_start;
  9. const struct exception_table_entry *dbe_end;
  10. };
  11. typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */
  12. #define Elf_Shdr Elf32_Shdr
  13. #define Elf_Sym Elf32_Sym
  14. #define Elf_Ehdr Elf32_Ehdr
  15. #define Elf_Addr Elf32_Addr
  16. /* Given an address, look for it in the exception tables. */
  17. #ifdef CONFIG_MODULES
  18. const struct exception_table_entry *search_module_dbetables(unsigned long addr);
  19. #else
  20. static inline const struct exception_table_entry
  21. *search_module_dbetables(unsigned long addr)
  22. {
  23. return NULL;
  24. }
  25. #endif
  26. #define MODULE_PROC_FAMILY "SCORE7"
  27. #define MODULE_KERNEL_TYPE "32BIT "
  28. #define MODULE_KERNEL_SMTC ""
  29. #define MODULE_ARCH_VERMAGIC \
  30. MODULE_PROC_FAMILY MODULE_KERNEL_TYPE MODULE_KERNEL_SMTC
  31. #endif /* _ASM_SCORE_MODULE_H */