2005-04-16 22:20:36 +00:00
|
|
|
#ifndef __ASM_LINKAGE_H
|
|
|
|
#define __ASM_LINKAGE_H
|
|
|
|
|
2006-03-24 11:16:17 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
|
|
|
|
|
2006-03-24 11:16:17 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
#include <asm/asmmacro.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2013-01-21 22:16:07 +00:00
|
|
|
#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 "#")
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|