diff options
| author | Russell King <rmk@flint.arm.linux.org.uk> | 2002-04-04 11:45:09 +0100 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2002-04-04 11:45:09 +0100 |
| commit | 94394e5bc92026a2ff31cd03e11e015adfdb3260 (patch) | |
| tree | 8f24a3e60e98d45ba7416821aadb84508e18d79d /kernel/sys.c | |
| parent | 3f4d4f4e46865cb01d2e2717c6906e2ae079c042 (diff) | |
| parent | 5e4b50795ee8c7659a1181cea4c98712e02ea63e (diff) | |
Merge flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5
into flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5-rmk
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index fc8e5e4060a0..54f018e69bf5 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -173,6 +173,18 @@ asmlinkage long sys_ni_syscall(void) return -ENOSYS; } +/* + * "Conditional" syscalls + * + * What we want is __attribute__((weak,alias("sys_ni_syscall"))), + * but it doesn't work on sparc64, so we just do it by hand + */ +#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); + +cond_syscall(sys_nfsservctl) +cond_syscall(sys_quotactl) +cond_syscall(sys_acct) + static int proc_sel(struct task_struct *p, int which, int who) { if(p->pid) |
