linkage.h 542 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_X86_LINKAGE_H
  2. #define _ASM_X86_LINKAGE_H
  3. #include <linux/stringify.h>
  4. #undef notrace
  5. #define notrace __attribute__((no_instrument_function))
  6. #ifdef CONFIG_X86_32
  7. #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
  8. #endif /* CONFIG_X86_32 */
  9. #ifdef __ASSEMBLY__
  10. #define GLOBAL(name) \
  11. .globl name; \
  12. name:
  13. #if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16)
  14. #define __ALIGN .p2align 4, 0x90
  15. #define __ALIGN_STR __stringify(__ALIGN)
  16. #endif
  17. #endif /* __ASSEMBLY__ */
  18. #endif /* _ASM_X86_LINKAGE_H */