From aa7bd942498512d6b77d1d0da846a8ecdd5d6186 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 23 Aug 2008 17:28:20 -0400 Subject: x86, um: get rid of header symlinks Signed-off-by: Al Viro Signed-off-by: H. Peter Anvin --- arch/um/sys-x86_64/shared/sysdep/syscalls.h | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 arch/um/sys-x86_64/shared/sysdep/syscalls.h (limited to 'arch/um/sys-x86_64/shared/sysdep/syscalls.h') diff --git a/arch/um/sys-x86_64/shared/sysdep/syscalls.h b/arch/um/sys-x86_64/shared/sysdep/syscalls.h new file mode 100644 index 000000000000..7cfb0b085655 --- /dev/null +++ b/arch/um/sys-x86_64/shared/sysdep/syscalls.h @@ -0,0 +1,33 @@ +/* + * Copyright 2003 PathScale, Inc. + * + * Licensed under the GPL + */ + +#ifndef __SYSDEP_X86_64_SYSCALLS_H__ +#define __SYSDEP_X86_64_SYSCALLS_H__ + +#include +#include +#include + +typedef long syscall_handler_t(void); + +extern syscall_handler_t *sys_call_table[]; + +#define EXECUTE_SYSCALL(syscall, regs) \ + (((long (*)(long, long, long, long, long, long)) \ + (*sys_call_table[syscall]))(UPT_SYSCALL_ARG1(®s->regs), \ + UPT_SYSCALL_ARG2(®s->regs), \ + UPT_SYSCALL_ARG3(®s->regs), \ + UPT_SYSCALL_ARG4(®s->regs), \ + UPT_SYSCALL_ARG5(®s->regs), \ + UPT_SYSCALL_ARG6(®s->regs))) + +extern long old_mmap(unsigned long addr, unsigned long len, + unsigned long prot, unsigned long flags, + unsigned long fd, unsigned long pgoff); +extern syscall_handler_t sys_modify_ldt; +extern syscall_handler_t sys_arch_prctl; + +#endif -- cgit v1.2.3