Commit f92bf002 authored by Richard Henderson's avatar Richard Henderson

[ALPHA] Use raw asm instead of attributes for cond_syscall.

parent 6fc3e934
...@@ -616,16 +616,16 @@ asmlinkage long sys_rt_sigaction(int sig, ...@@ -616,16 +616,16 @@ asmlinkage long sys_rt_sigaction(int sig,
#endif /* __KERNEL_SYSCALLS__ */ #endif /* __KERNEL_SYSCALLS__ */
/* /* "Conditional" syscalls. What we want is
* "Conditional" syscalls
* __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 that raises the problem of what type to give the symbol. If we use
* a prototype, it'll conflict with the definition given in this file and
* Note that we do *not* provide a parameter list to avoid others. If we use __typeof, we discover that not all symbols actually
* conflicting with one of the syscall declarations in some have declarations. If we use no prototype, then we get warnings from
* of the relevant header files (including this one). -Wstrict-prototypes. Ho hum. */
*/
#define cond_syscall(x) asmlinkage long x() __attribute__((weak,alias("sys_ni_syscall"))); #define cond_syscall(x) asm(".weak\t" #x "\n" #x " = sys_ni_syscall");
#endif /* _ALPHA_UNISTD_H */ #endif /* _ALPHA_UNISTD_H */
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