linkage.h 398 B

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