forked from luck/tmp_suning_uos_patched
22a3e233ca
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: Remove obsolete #include <linux/config.h> remove obsolete swsusp_encrypt arch/arm26/Kconfig typos Documentation/IPMI typos Kconfig: Typos in net/sched/Kconfig v9fs: do not include linux/version.h Documentation/DocBook/mtdnand.tmpl: typo fixes typo fixes: specfic -> specific typo fixes in Documentation/networking/pktgen.txt typo fixes: occuring -> occurring typo fixes: infomation -> information typo fixes: disadvantadge -> disadvantage typo fixes: aquire -> acquire typo fixes: mecanism -> mechanism typo fixes: bandwith -> bandwidth fix a typo in the RTC_CLASS help text smb is no longer maintained Manually merged trivial conflict in arch/um/kernel/vmlinux.lds.S
53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
/* System call table for UML/x86-64, copied from arch/x86_64/kernel/syscall.c
|
|
* with some changes for UML. */
|
|
|
|
#include <linux/linkage.h>
|
|
#include <linux/sys.h>
|
|
#include <linux/cache.h>
|
|
|
|
#define __NO_STUBS
|
|
|
|
/* Below you can see, in terms of #define's, the differences between the x86-64
|
|
* and the UML syscall table. */
|
|
|
|
/* Not going to be implemented by UML, since we have no hardware. */
|
|
#define stub_iopl sys_ni_syscall
|
|
#define sys_ioperm sys_ni_syscall
|
|
|
|
/* The UML TLS problem. Note that x86_64 does not implement this, so the below
|
|
* is needed only for the ia32 compatibility. */
|
|
/*#define sys_set_thread_area sys_ni_syscall
|
|
#define sys_get_thread_area sys_ni_syscall*/
|
|
|
|
/* On UML we call it this way ("old" means it's not mmap2) */
|
|
#define sys_mmap old_mmap
|
|
/* On x86-64 sys_uname is actually sys_newuname plus a compatibility trick.
|
|
* See arch/x86_64/kernel/sys_x86_64.c */
|
|
#define sys_uname sys_uname64
|
|
|
|
#define stub_clone sys_clone
|
|
#define stub_fork sys_fork
|
|
#define stub_vfork sys_vfork
|
|
#define stub_execve sys_execve
|
|
#define stub_rt_sigsuspend sys_rt_sigsuspend
|
|
#define stub_sigaltstack sys_sigaltstack
|
|
#define stub_rt_sigreturn sys_rt_sigreturn
|
|
|
|
#define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
|
|
#undef _ASM_X86_64_UNISTD_H_
|
|
#include <asm-x86_64/unistd.h>
|
|
|
|
#undef __SYSCALL
|
|
#define __SYSCALL(nr, sym) [ nr ] = sym,
|
|
#undef _ASM_X86_64_UNISTD_H_
|
|
|
|
typedef void (*sys_call_ptr_t)(void);
|
|
|
|
extern void sys_ni_syscall(void);
|
|
|
|
sys_call_ptr_t sys_call_table[__NR_syscall_max+1] __cacheline_aligned = {
|
|
/* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */
|
|
[0 ... __NR_syscall_max] = &sys_ni_syscall,
|
|
#include <asm-x86_64/unistd.h>
|
|
};
|