https://github.com/torvalds/linux
Raw File
Tip revision: 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 authored by Linus Torvalds on 30 July 2017, 19:40:36 UTC
Linux 4.13-rc3
Tip revision: 16f73eb
linkage.h
#ifndef __ASM_LINKAGE_H
#define __ASM_LINKAGE_H

#ifndef __ASSEMBLY__

#define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))

#else

#include <asm/asmmacro.h>

#endif

#define cond_syscall(x) asm(".weak\t" #x "#\n" #x "#\t=\tsys_ni_syscall#")
#define SYSCALL_ALIAS(alias, name)					\
	asm ( #alias "# = " #name "#\n\t.globl " #alias "#")

#endif
back to top