Skip to content

Commit

Permalink
linux-user: AArch64 has sync_file_range, not sync_file_range2
Browse files Browse the repository at this point in the history
The AArch64 Linux ABI syscall 84 is sync_file_range, not
sync_file_range2 (in the kernel it uses the asm-generic
headers and does not define __ARCH_WANT_SYNC_FILE_RANGE2).
Update our TARGET_NR_* definitions accordingly.

This fixes the sync_file_range syscall which otherwise
gets its arguments in the wrong order.

Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
  • Loading branch information
pm215 authored and Riku Voipio committed Jul 19, 2016
1 parent a57f1f8 commit c4e1cbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linux-user/aarch64/syscall_nr.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@
#define TARGET_NR_sync 81
#define TARGET_NR_fsync 82
#define TARGET_NR_fdatasync 83
#define TARGET_NR_sync_file_range2 84
/* #define TARGET_NR_sync_file_range 84 */
#define TARGET_NR_sync_file_range 84
#define TARGET_NR_timerfd_create 85
#define TARGET_NR_timerfd_settime 86
#define TARGET_NR_timerfd_gettime 87
Expand Down

0 comments on commit c4e1cbd

Please sign in to comment.