module.h 910 B

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