aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64/sys_call_table.c
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-05-01 08:58:55 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 08:58:55 -0700
commit5e7b83ffc67e15791d9bf8b2a18e4f5fd0eb69b8 (patch)
tree21d245a8ebe9a36748b1f76ff9050ceeaeba926c /arch/um/sys-x86_64/sys_call_table.c
parent[PATCH] uml: move va_copy conditional def (diff)
downloadlinux-dev-5e7b83ffc67e15791d9bf8b2a18e4f5fd0eb69b8.tar.xz
linux-dev-5e7b83ffc67e15791d9bf8b2a18e4f5fd0eb69b8.zip
[PATCH] uml: fix syscall table by including $(SUBARCH)'s one, for i386
Split the i386 entry.S files into entry.S and syscall_table.S which is included in the previous one (so actually there is no difference between them) and use the syscall_table.S in the UML build, instead of tracking by hand the syscall table changes (which is inherently error-prone). We must only insert the right #defines to inject the changes we need from the i386 syscall table (for instance some different function names); also, we don't implement some i386 syscalls, as ioperm(), nor some TLS-related ones (yet to provide). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r--arch/um/sys-x86_64/sys_call_table.c (renamed from arch/um/kernel/sys_call_table.c)12
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/um/kernel/sys_call_table.c b/arch/um/sys-x86_64/sys_call_table.c
index b671a31a0069..3f5efbfb46de 100644
--- a/arch/um/kernel/sys_call_table.c
+++ b/arch/um/sys-x86_64/sys_call_table.c
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
* Copyright 2003 PathScale, Inc.
* Licensed under the GPL
@@ -14,6 +14,12 @@
#include "sysdep/syscalls.h"
#include "kern_util.h"
+#ifdef CONFIG_NFSD
+#define NFSSERVCTL sys_nfsservctl
+#else
+#define NFSSERVCTL sys_ni_syscall
+#endif
+
#define LAST_GENERIC_SYSCALL __NR_keyctl
#if LAST_GENERIC_SYSCALL > LAST_ARCH_SYSCALL
@@ -183,7 +189,7 @@ syscall_handler_t *sys_call_table[] = {
[ __NR_getresuid ] = (syscall_handler_t *) sys_getresuid16,
[ __NR_query_module ] = (syscall_handler_t *) sys_ni_syscall,
[ __NR_poll ] = (syscall_handler_t *) sys_poll,
- [ __NR_nfsservctl ] = (syscall_handler_t *) sys_nfsservctl,
+ [ __NR_nfsservctl ] = (syscall_handler_t *) NFSSERVCTL,
[ __NR_setresgid ] = (syscall_handler_t *) sys_setresgid16,
[ __NR_getresgid ] = (syscall_handler_t *) sys_getresgid16,
[ __NR_prctl ] = (syscall_handler_t *) sys_prctl,
@@ -265,6 +271,6 @@ syscall_handler_t *sys_call_table[] = {
[ __NR_keyctl ] = (syscall_handler_t *) sys_keyctl,
ARCH_SYSCALLS
- [ LAST_SYSCALL + 1 ... NR_syscalls ] =
+ [ LAST_SYSCALL + 1 ... NR_syscalls ] =
(syscall_handler_t *) sys_ni_syscall
};