From 5b1e894e6a0bbefc389933366f6adffbf2e096a0 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Tue, 9 Apr 2002 13:58:44 +1000 Subject: 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. --- kernel/sys.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'kernel') diff --git a/kernel/sys.c b/kernel/sys.c index 1642e115d2b0..69d29b4ad273 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -19,6 +19,7 @@ #include #include +#include /* * this is where the system-wide overflow UID and GID are defined, for @@ -174,14 +175,6 @@ 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) -- cgit v1.2.3