module.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _ASM_ARM_MODULE_H
  2. #define _ASM_ARM_MODULE_H
  3. #include <asm-generic/module.h>
  4. struct unwind_table;
  5. #ifdef CONFIG_ARM_UNWIND
  6. enum {
  7. ARM_SEC_INIT,
  8. ARM_SEC_DEVINIT,
  9. ARM_SEC_CORE,
  10. ARM_SEC_EXIT,
  11. ARM_SEC_DEVEXIT,
  12. ARM_SEC_HOT,
  13. ARM_SEC_UNLIKELY,
  14. ARM_SEC_MAX,
  15. };
  16. struct mod_arch_specific {
  17. struct unwind_table *unwind[ARM_SEC_MAX];
  18. };
  19. #endif
  20. /*
  21. * Add the ARM architecture version to the version magic string
  22. */
  23. #define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
  24. /* Add __virt_to_phys patching state as well */
  25. #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
  26. #define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
  27. #else
  28. #define MODULE_ARCH_VERMAGIC_P2V ""
  29. #endif
  30. /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */
  31. #ifdef CONFIG_THUMB2_KERNEL
  32. #define MODULE_ARCH_VERMAGIC_ARMTHUMB "thumb2 "
  33. #else
  34. #define MODULE_ARCH_VERMAGIC_ARMTHUMB ""
  35. #endif
  36. #define MODULE_ARCH_VERMAGIC \
  37. MODULE_ARCH_VERMAGIC_ARMVSN \
  38. MODULE_ARCH_VERMAGIC_ARMTHUMB \
  39. MODULE_ARCH_VERMAGIC_P2V
  40. #endif /* _ASM_ARM_MODULE_H */