[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>
This commit is contained in:

committed by
Linus Torvalds

parent
e9c527163d
commit
5e7b83ffc6
16
arch/um/sys-i386/sys_call_table.S
Normal file
16
arch/um/sys-i386/sys_call_table.S
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <linux/linkage.h>
|
||||
/* Steal i386 syscall table for our purposes, but with some slight changes.*/
|
||||
|
||||
#define sys_iopl sys_ni_syscall
|
||||
#define sys_ioperm sys_ni_syscall
|
||||
|
||||
#define sys_vm86old sys_ni_syscall
|
||||
#define sys_vm86 sys_ni_syscall
|
||||
#define sys_set_thread_area sys_ni_syscall
|
||||
#define sys_get_thread_area sys_ni_syscall
|
||||
|
||||
#define sys_stime um_stime
|
||||
#define sys_time um_time
|
||||
#define old_mmap old_mmap_i386
|
||||
|
||||
#include "../../i386/kernel/syscall_table.S"
|
Reference in New Issue
Block a user