]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - arch/csky/include/asm/syscall.h
syscalls: Remove start and number from syscall_get_arguments() args
[thirdparty/kernel/stable.git] / arch / csky / include / asm / syscall.h
index 9a9cd81e66c1157c2df53e1ff350569b2d87dcb2..c691fe92edc6efdae78b02254df30b9b76dfe588 100644 (file)
@@ -43,17 +43,11 @@ syscall_set_return_value(struct task_struct *task, struct pt_regs *regs,
 
 static inline void
 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
-                     unsigned int i, unsigned int n, unsigned long *args)
+                     unsigned long *args)
 {
-       BUG_ON(i + n > 6);
-       if (i == 0) {
-               args[0] = regs->orig_a0;
-               args++;
-               n--;
-       } else {
-               i--;
-       }
-       memcpy(args, &regs->a1 + i, n * sizeof(args[0]));
+       args[0] = regs->orig_a0;
+       args++;
+       memcpy(args, &regs->a1, 5 * sizeof(args[0]));
 }
 
 static inline void