module.h 808 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ASM_M68K_MODULE_H
  2. #define _ASM_M68K_MODULE_H
  3. #include <asm-generic/module.h>
  4. enum m68k_fixup_type {
  5. m68k_fixup_memoffset,
  6. m68k_fixup_vnode_shift,
  7. };
  8. struct m68k_fixup_info {
  9. enum m68k_fixup_type type;
  10. void *addr;
  11. };
  12. struct mod_arch_specific {
  13. struct m68k_fixup_info *fixup_start, *fixup_end;
  14. };
  15. #ifdef CONFIG_MMU
  16. #define MODULE_ARCH_INIT { \
  17. .fixup_start = __start_fixup, \
  18. .fixup_end = __stop_fixup, \
  19. }
  20. #define m68k_fixup(type, addr) \
  21. " .section \".m68k_fixup\",\"aw\"\n" \
  22. " .long " #type "," #addr "\n" \
  23. " .previous\n"
  24. #endif /* CONFIG_MMU */
  25. extern struct m68k_fixup_info __start_fixup[], __stop_fixup[];
  26. struct module;
  27. extern void module_fixup(struct module *mod, struct m68k_fixup_info *start,
  28. struct m68k_fixup_info *end);
  29. #endif /* _ASM_M68K_MODULE_H */