linkage.h 306 B

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