.. | .. |
---|
82 | 82 | |
---|
83 | 83 | static inline void syscall_get_arguments(struct task_struct *task, |
---|
84 | 84 | struct pt_regs *regs, |
---|
85 | | - unsigned int i, unsigned int n, |
---|
86 | 85 | unsigned long *args) |
---|
87 | 86 | { |
---|
| 87 | + unsigned int i = 0; |
---|
| 88 | + unsigned int n = 6; |
---|
| 89 | + |
---|
88 | 90 | while (n--) |
---|
89 | 91 | *args++ = microblaze_get_syscall_arg(regs, i++); |
---|
90 | 92 | } |
---|
91 | 93 | |
---|
92 | 94 | static inline void syscall_set_arguments(struct task_struct *task, |
---|
93 | 95 | struct pt_regs *regs, |
---|
94 | | - unsigned int i, unsigned int n, |
---|
95 | 96 | const unsigned long *args) |
---|
96 | 97 | { |
---|
| 98 | + unsigned int i = 0; |
---|
| 99 | + unsigned int n = 6; |
---|
| 100 | + |
---|
97 | 101 | while (n--) |
---|
98 | 102 | microblaze_set_syscall_arg(regs, i++, *args++); |
---|
99 | 103 | } |
---|
.. | .. |
---|
101 | 105 | asmlinkage unsigned long do_syscall_trace_enter(struct pt_regs *regs); |
---|
102 | 106 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); |
---|
103 | 107 | |
---|
104 | | -static inline int syscall_get_arch(void) |
---|
| 108 | +static inline int syscall_get_arch(struct task_struct *task) |
---|
105 | 109 | { |
---|
106 | 110 | return AUDIT_ARCH_MICROBLAZE; |
---|
107 | 111 | } |
---|