diff options
| author | Anton Blanchard <anton@samba.org> | 2002-04-09 13:58:44 +1000 |
|---|---|---|
| committer | Anton Blanchard <anton@samba.org> | 2002-04-09 13:58:44 +1000 |
| commit | 5b1e894e6a0bbefc389933366f6adffbf2e096a0 (patch) | |
| tree | 3400dc04278052cfea6f7b3ee0b50c03b3646abd /include/asm-sparc | |
| parent | cbba4f5ef5c3298451d51aca1b74ad0040ff9c5a (diff) | |
Make cond_syscall per arch. This is required on some architectures
(eg ppc64) where foo points to a function descriptor and .foo is
the address of the actual function.
Diffstat (limited to 'include/asm-sparc')
| -rw-r--r-- | include/asm-sparc/unistd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-sparc/unistd.h b/include/asm-sparc/unistd.h index 5ef9d7c3a70d..3f131fd488e9 100644 --- a/include/asm-sparc/unistd.h +++ b/include/asm-sparc/unistd.h @@ -437,4 +437,12 @@ static __inline__ pid_t wait(int * wait_stat) #endif /* __KERNEL_SYSCALLS__ */ +/* + * "Conditional" syscalls + * + * What we want is __attribute__((weak,alias("sys_ni_syscall"))), + * but it doesn't work on all toolchains, so we just do it by hand + */ +#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); + #endif /* _SPARC_UNISTD_H */ |
