diff options
author | David S. Miller <davem@davemloft.net> | 2019-04-08 23:39:36 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-08 23:39:36 -0700 |
commit | 310655b07ae8ef0b8fdb641b610ded2052215664 (patch) | |
tree | d9b7a500ef21a087a337e1f1bb9218000cf1c03d /arch/microblaze/include/asm/syscall.h | |
parent | 7f301cff1fc20c5b91203c5e610cf95782081d5d (diff) | |
parent | 869e3305f23dfeacdaa234717c92ccb237815d90 (diff) | |
download | linux-310655b07ae8ef0b8fdb641b610ded2052215664.tar.gz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'arch/microblaze/include/asm/syscall.h')
-rw-r--r-- | arch/microblaze/include/asm/syscall.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/microblaze/include/asm/syscall.h b/arch/microblaze/include/asm/syscall.h index 220decd605a4..833d3a53dab3 100644 --- a/arch/microblaze/include/asm/syscall.h +++ b/arch/microblaze/include/asm/syscall.h @@ -82,18 +82,22 @@ static inline void microblaze_set_syscall_arg(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 int i = 0; + unsigned int n = 6; + while (n--) *args++ = microblaze_get_syscall_arg(regs, i++); } 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++); } |