linkage.h 359 B

123456789101112131415161718
  1. #ifndef __ASM_LINKAGE_H
  2. #define __ASM_LINKAGE_H
  3. #ifndef __ASSEMBLY__
  4. #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
  5. #else
  6. #include <asm/asmmacro.h>
  7. #endif
  8. #define cond_syscall(x) asm(".weak\t" #x "#\n" #x "#\t=\tsys_ni_syscall#")
  9. #define SYSCALL_ALIAS(alias, name) \
  10. asm ( #alias "# = " #name "#\n\t.globl " #alias "#")
  11. #endif