summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/syscall.h')
-rw-r--r--arch/microblaze/include/asm/syscall.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/syscall.h b/arch/microblaze/include/asm/syscall.h
index 4b23e44e5c3c..833d3a53dab3 100644
--- a/arch/microblaze/include/asm/syscall.h
+++ b/arch/microblaze/include/asm/syscall.h
@@ -93,9 +93,11 @@ static inline void syscall_get_arguments(struct task_struct *task,
static inline void syscall_set_arguments(struct task_struct *task,
struct pt_regs *regs,
- unsigned int i, unsigned int n,
const unsigned long *args)
{
+ unsigned int i = 0;
+ unsigned int n = 6;
+
while (n--)
microblaze_set_syscall_arg(regs, i++, *args++);
}