summaryrefslogtreecommitdiff
path: root/arch/hexagon/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/hexagon/include/asm/syscall.h')
-rw-r--r--arch/hexagon/include/asm/syscall.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/hexagon/include/asm/syscall.h b/arch/hexagon/include/asm/syscall.h
index 47b0bc3f16be..dab26a71f577 100644
--- a/arch/hexagon/include/asm/syscall.h
+++ b/arch/hexagon/include/asm/syscall.h
@@ -39,11 +39,9 @@ static inline long syscall_get_nr(struct task_struct *task,
static inline void syscall_get_arguments(struct task_struct *task,
struct pt_regs *regs,
- unsigned int i, unsigned int n,
unsigned long *args)
{
- BUG_ON(i + n > 6);
- memcpy(args, &(&regs->r00)[i], n * sizeof(args[0]));
+ memcpy(args, &(&regs->r00)[0], 6 * sizeof(args[0]));
}
static inline int syscall_get_arch(struct task_struct *task)