Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/egtvedt/linux-avr32

Pull AVR32 updates from Hans-Christian Egtvedt.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32:
  avr32: fix asm operand constraint in cmpxchg()
  avr32: wire up copy_file_range syscall
  • Loading branch information
torvalds committed Mar 16, 2016
2 parents 10dc374 + 392c517 commit 1c8e85b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old,
" brne 1b\n"
"2:\n"
: [ret] "=&r"(ret), [m] "=m"(*m)
: "m"(m), [old] "ir"(old), [new] "r"(new)
: "m"(m), [old] "Ks21r"(old), [new] "r"(new)
: "memory", "cc");
return ret;
}
Expand Down
1 change: 1 addition & 0 deletions arch/avr32/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,5 +337,6 @@
#define __NR_userfaultfd 322
#define __NR_membarrier 323
#define __NR_mlock2 324
#define __NR_copy_file_range 325

#endif /* _UAPI__ASM_AVR32_UNISTD_H */
9 changes: 9 additions & 0 deletions arch/avr32/kernel/syscall-stubs.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions arch/avr32/kernel/syscall_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,5 @@ sys_call_table:
.long sys_userfaultfd
.long sys_membarrier
.long sys_mlock2
.long __sys_copy_file_range /* 325 */
.long sys_ni_syscall /* r8 is saturated at nr_syscalls */

0 comments on commit 1c8e85b

Please sign in to comment.