linkage.h 594 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __ASM_LINKAGE_H
  2. #define __ASM_LINKAGE_H
  3. #include <linux/stringify.h>
  4. #define __ALIGN .align 4, 0x07
  5. #define __ALIGN_STR __stringify(__ALIGN)
  6. #ifndef __ASSEMBLY__
  7. /*
  8. * Helper macro for exception table entries
  9. */
  10. #define EX_TABLE(_fault, _target) \
  11. ".section __ex_table,\"a\"\n" \
  12. ".align 4\n" \
  13. ".long (" #_fault ") - .\n" \
  14. ".long (" #_target ") - .\n" \
  15. ".previous\n"
  16. #else /* __ASSEMBLY__ */
  17. #define EX_TABLE(_fault, _target) \
  18. .section __ex_table,"a" ; \
  19. .align 4 ; \
  20. .long (_fault) - . ; \
  21. .long (_target) - . ; \
  22. .previous
  23. #endif /* __ASSEMBLY__ */
  24. #endif