File tree Expand file tree Collapse file tree 5 files changed +9
-62
lines changed Expand file tree Collapse file tree 5 files changed +9
-62
lines changed Original file line number Diff line number Diff line change 9
9
#include <kern_util.h>
10
10
#include <sysdep/ptrace.h>
11
11
#include <sysdep/ptrace_user.h>
12
- #include <sysdep/syscalls.h>
13
12
#include <linux/time-internal.h>
13
+ #include <asm/syscall.h>
14
14
#include <asm/unistd.h>
15
15
#include <asm/delay.h>
16
16
@@ -43,7 +43,14 @@ void handle_syscall(struct uml_pt_regs *r)
43
43
tt_extra_sched_jiffies += 1 ;
44
44
45
45
if (syscall >= 0 && syscall < __NR_syscalls ) {
46
- unsigned long ret = EXECUTE_SYSCALL (syscall , regs );
46
+ unsigned long ret ;
47
+
48
+ ret = (* sys_call_table [syscall ])(UPT_SYSCALL_ARG1 (& regs -> regs ),
49
+ UPT_SYSCALL_ARG2 (& regs -> regs ),
50
+ UPT_SYSCALL_ARG3 (& regs -> regs ),
51
+ UPT_SYSCALL_ARG4 (& regs -> regs ),
52
+ UPT_SYSCALL_ARG5 (& regs -> regs ),
53
+ UPT_SYSCALL_ARG6 (& regs -> regs ));
47
54
48
55
PT_REGS_SET_SYSCALL_RETURN (regs , ret );
49
56
Original file line number Diff line number Diff line change 44
44
#include "ptrace_64.h"
45
45
#endif
46
46
47
- struct syscall_args {
48
- unsigned long args [6 ];
49
- };
50
-
51
- #define SYSCALL_ARGS (r ) ((struct syscall_args) \
52
- { .args = { UPT_SYSCALL_ARG1(r), \
53
- UPT_SYSCALL_ARG2(r), \
54
- UPT_SYSCALL_ARG3(r), \
55
- UPT_SYSCALL_ARG4(r), \
56
- UPT_SYSCALL_ARG5(r), \
57
- UPT_SYSCALL_ARG6(r) } } )
58
-
59
47
extern unsigned long host_fp_size ;
60
48
61
49
struct uml_pt_regs {
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments