diff options
Diffstat (limited to 'arch/openrisc/include/asm/syscall.h')
-rw-r--r-- | arch/openrisc/include/asm/syscall.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/openrisc/include/asm/syscall.h b/arch/openrisc/include/asm/syscall.h index 72607860cd55..b4ff07c1baed 100644 --- a/arch/openrisc/include/asm/syscall.h +++ b/arch/openrisc/include/asm/syscall.h | |||
@@ -63,11 +63,9 @@ syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, | |||
63 | 63 | ||
64 | static inline void | 64 | static inline void |
65 | syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, | 65 | syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, |
66 | unsigned int i, unsigned int n, const unsigned long *args) | 66 | const unsigned long *args) |
67 | { | 67 | { |
68 | BUG_ON(i + n > 6); | 68 | memcpy(®s->gpr[3], args, 6 * sizeof(args[0])); |
69 | |||
70 | memcpy(®s->gpr[3 + i], args, n * sizeof(args[0])); | ||
71 | } | 69 | } |
72 | 70 | ||
73 | static inline int syscall_get_arch(void) | 71 | static inline int syscall_get_arch(void) |