1. 17 8月, 2018 1 次提交
  2. 21 10月, 2016 1 次提交
    • A
      linux-user: Fix fadvise64() syscall support for Mips32 · 2f2bd444
      Aleksandar Markovic 提交于
      By looking at the file arch/mips/kernel/scall32-o32.S in Linux
      kernel, it can be deduced that, for Mips32 platform, syscall
      corresponding to number _NR_fadvise64 as defined in kernel file
      arch/mips/include/uapi/asm/unistd.h translates to kernel function
      sys_fadvise64_64, and that argument layout for this system call is
      as follows:
      
                    0             32 0             32
                   +----------------+----------------+
            (arg1) |       fd       |     __pad      | (arg2)
                   +----------------+----------------+
            (arg3) |             buffer              | (arg4)
                   +----------------+----------------+
            (arg5) |               len               | (arg6)
                   +----------------+----------------+
            (arg7) |     advise     |    not used    | (arg8)
                   +----------------+----------------+
      
      The same argument layout can be deduced from glibc code, and
      relevant commit messages in linux kernel and glibc.
      
      The fix is to change TARGET_NR_fadvise64 to TARGET_NR_fadvise64_64
      in Mips32 syscall numbers table. Array mips_syscall_args[] in
      linux-user/main.c also already have "fadvise64_64" (and not
      "fadvise64") in corresponding place for the syscall number in
      question, so no change for linux-user/main.c.
      
      This patch also fixes the failure LTP test posix_fadvise03, if
      executed on Qemu-emulated Mips32 platform (user mode).
      Signed-off-by: NAleksandar Rikalo <aleksandar.rikalo@imgtec.com>
      Signed-off-by: NMiroslav Tisma <miroslav.tisma@imgtec.com>
      Signed-off-by: NAleksandar Markovic <aleksandar.markovic@imgtec.com>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      2f2bd444
  3. 11 1月, 2016 1 次提交
  4. 18 2月, 2014 1 次提交
  5. 11 7月, 2011 1 次提交
  6. 03 12月, 2010 1 次提交
  7. 16 6月, 2009 1 次提交
  8. 24 9月, 2007 1 次提交
  9. 13 5月, 2007 1 次提交
  10. 03 3月, 2007 1 次提交
  11. 29 11月, 2005 1 次提交
  12. 27 11月, 2005 1 次提交