diff options
Diffstat (limited to 'arch/um/kernel/tt/syscall_kern.c')
-rw-r--r-- | arch/um/kernel/tt/syscall_kern.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/um/kernel/tt/syscall_kern.c b/arch/um/kernel/tt/syscall_kern.c deleted file mode 100644 index 293caa6d0c2d..000000000000 --- a/arch/um/kernel/tt/syscall_kern.c +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2000 - 2003 Jeff Dike (jdike@addtoit.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #include "linux/types.h" | ||
7 | #include "linux/utime.h" | ||
8 | #include "linux/sys.h" | ||
9 | #include "linux/ptrace.h" | ||
10 | #include "asm/unistd.h" | ||
11 | #include "asm/ptrace.h" | ||
12 | #include "asm/uaccess.h" | ||
13 | #include "asm/stat.h" | ||
14 | #include "sysdep/syscalls.h" | ||
15 | #include "sysdep/sigcontext.h" | ||
16 | #include "kern_util.h" | ||
17 | #include "syscall.h" | ||
18 | |||
19 | void syscall_handler_tt(int sig, struct pt_regs *regs) | ||
20 | { | ||
21 | void *sc; | ||
22 | long result; | ||
23 | int syscall; | ||
24 | |||
25 | sc = UPT_SC(®s->regs); | ||
26 | SC_START_SYSCALL(sc); | ||
27 | |||
28 | syscall = UPT_SYSCALL_NR(®s->regs); | ||
29 | syscall_trace(®s->regs, 0); | ||
30 | |||
31 | current->thread.nsyscalls++; | ||
32 | nsyscalls++; | ||
33 | |||
34 | if((syscall >= NR_syscalls) || (syscall < 0)) | ||
35 | result = -ENOSYS; | ||
36 | else result = EXECUTE_SYSCALL(syscall, regs); | ||
37 | |||
38 | /* regs->sc may have changed while the system call ran (there may | ||
39 | * have been an interrupt or segfault), so it needs to be refreshed. | ||
40 | */ | ||
41 | UPT_SC(®s->regs) = sc; | ||
42 | |||
43 | SC_SET_SYSCALL_RETURN(sc, result); | ||
44 | |||
45 | syscall_trace(®s->regs, 1); | ||
46 | } | ||