From b837e97fd35a6b551e3478ace0623a0bd744787c Mon Sep 17 00:00:00 2001 From: Hans-Christian Egtvedt Date: Sun, 28 Feb 2016 18:14:41 +0100 Subject: avr32: wire up copy_file_range syscall This patch wires up the new copy_file_range syscall on AVR32. On AVR32, all parameters beyond the 5th are passed on the stack. System calls don't use the stack -- they borrow a callee-saved register instead. This means that syscalls that take 6 parameters must be called through a stub that pushes the last parameter on the stack. Signed-off-by: Hans-Christian Noren Egtvedt --- arch/avr32/kernel/syscall-stubs.S | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/avr32/kernel/syscall-stubs.S') diff --git a/arch/avr32/kernel/syscall-stubs.S b/arch/avr32/kernel/syscall-stubs.S index f9c68fab0e2f..cb3991552f14 100644 --- a/arch/avr32/kernel/syscall-stubs.S +++ b/arch/avr32/kernel/syscall-stubs.S @@ -124,3 +124,12 @@ __sys_process_vm_writev: call sys_process_vm_writev sub sp, -4 popm pc + + .global __sys_copy_file_range + .type __sys_copy_file_range,@function +__sys_copy_file_range: + pushm lr + st.w --sp, ARG6 + call sys_copy_file_range + sub sp, -4 + popm pc -- cgit v1.2.3-59-g8ed1b