linux-user: Fix handling of arm_fadvise64_64 syscall
commite0156a9dc43daea13b06b4c0edb755cc8f92dfdf
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 31 May 2016 14:45:09 +0000 (31 15:45 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 8 Jun 2016 07:13:45 +0000 (8 10:13 +0300)
tree336287d474e1c42487d87299d28ed39983687281
parent9e024732f53b368abdd578e1795bf3d2779ea88a
linux-user: Fix handling of arm_fadvise64_64 syscall

32-bit ARM has an odd variant of the fadvise syscall which has
rearranged arguments, which we try to implement. Unfortunately we got
the rearrangement wrong.

This is a six-argument syscall whose arguments are:
 * fd
 * advise parameter
 * offset high half
 * offset low half
 * len high half
 * len low half

Stop trying to share code with the standard fadvise syscalls,
and just implement the syscall with the correct argument order.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c