Commit 45b624bf authored by Paul Mackerras's avatar Paul Mackerras

PPC32: only define cond_syscall if it isn't already defined.

parent bb23149d
...@@ -461,7 +461,9 @@ extern pid_t waitpid(pid_t pid, int *wait_stat, int options); ...@@ -461,7 +461,9 @@ extern pid_t waitpid(pid_t pid, int *wait_stat, int options);
* What we want is __attribute__((weak,alias("sys_ni_syscall"))), * 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 * but it doesn't work on all toolchains, so we just do it by hand
*/ */
#ifndef cond_syscall
#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
#endif
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment