diff options
Diffstat (limited to 'arch/openrisc/include/asm/syscall.h')
| -rw-r--r-- | arch/openrisc/include/asm/syscall.h | 12 | 
1 files changed, 4 insertions, 8 deletions
| diff --git a/arch/openrisc/include/asm/syscall.h b/arch/openrisc/include/asm/syscall.h index 2db9f1cf0694..b4ff07c1baed 100644 --- a/arch/openrisc/include/asm/syscall.h +++ b/arch/openrisc/include/asm/syscall.h @@ -56,20 +56,16 @@ 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); - -	memcpy(args, ®s->gpr[3 + i], n * sizeof(args[0])); +	memcpy(args, ®s->gpr[3], 6 * sizeof(args[0]));  }  static inline void  syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, -		      unsigned int i, unsigned int n, const unsigned long *args) +		      const unsigned long *args)  { -	BUG_ON(i + n > 6); - -	memcpy(®s->gpr[3 + i], args, n * sizeof(args[0])); +	memcpy(®s->gpr[3], args, 6 * sizeof(args[0]));  }  static inline int syscall_get_arch(void) |