summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2002-04-09 13:58:44 +1000
committerAnton Blanchard <anton@samba.org>2002-04-09 13:58:44 +1000
commit5b1e894e6a0bbefc389933366f6adffbf2e096a0 (patch)
tree3400dc04278052cfea6f7b3ee0b50c03b3646abd /kernel
parentcbba4f5ef5c3298451d51aca1b74ad0040ff9c5a (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 'kernel')
-rw-r--r--kernel/sys.c9
1 files changed, 1 insertions, 8 deletions
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 <asm/uaccess.h>
#include <asm/io.h>
+#include <asm/unistd.h>
/*
* 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)