module.h 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_MAX,
  13. };
  14. struct mod_arch_specific {
  15. struct unwind_table *unwind[ARM_SEC_MAX];
  16. };
  17. #endif
  18. /*
  19. * Add the ARM architecture version to the version magic string
  20. */
  21. #define MODULE_ARCH_VERMAGIC_ARMVSN "ARMv" __stringify(__LINUX_ARM_ARCH__) " "
  22. /* Add __virt_to_phys patching state as well */
  23. #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
  24. #define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
  25. #else
  26. #define MODULE_ARCH_VERMAGIC_P2V ""
  27. #endif
  28. /* Add instruction set architecture tag to distinguish ARM/Thumb kernels */
  29. #ifdef CONFIG_THUMB2_KERNEL
  30. #define MODULE_ARCH_VERMAGIC_ARMTHUMB "thumb2 "
  31. #else
  32. #define MODULE_ARCH_VERMAGIC_ARMTHUMB ""
  33. #endif
  34. #define MODULE_ARCH_VERMAGIC \
  35. MODULE_ARCH_VERMAGIC_ARMVSN \
  36. MODULE_ARCH_VERMAGIC_ARMTHUMB \
  37. MODULE_ARCH_VERMAGIC_P2V
  38. #endif /* _ASM_ARM_MODULE_H */