diff options
Diffstat (limited to 'arch/riscv/include/asm/syscall.h')
| -rw-r--r-- | arch/riscv/include/asm/syscall.h | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/riscv/include/asm/syscall.h b/arch/riscv/include/asm/syscall.h index 0148c6bd9675..121fff429dce 100644 --- a/arch/riscv/include/asm/syscall.h +++ b/arch/riscv/include/asm/syscall.h @@ -75,7 +75,7 @@ static inline int syscall_get_arch(struct task_struct *task)  #endif  } -typedef long (*syscall_t)(ulong, ulong, ulong, ulong, ulong, ulong, ulong); +typedef long (*syscall_t)(const struct pt_regs *);  static inline void syscall_handler(struct pt_regs *regs, ulong syscall)  {  	syscall_t fn; @@ -87,8 +87,7 @@ static inline void syscall_handler(struct pt_regs *regs, ulong syscall)  #endif  		fn = sys_call_table[syscall]; -	regs->a0 = fn(regs->orig_a0, regs->a1, regs->a2, -		      regs->a3, regs->a4, regs->a5, regs->a6); +	regs->a0 = fn(regs);  }  static inline bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs)  |