]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Support target-to-host translation of mlockall argument
authorTom Musta <tommusta@gmail.com>
Tue, 12 Aug 2014 18:53:42 +0000 (13:53 -0500)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 22 Aug 2014 12:06:35 +0000 (15:06 +0300)
commit6f6a40328b6f4679082583c2b3a949cda451a991
tree90c90e80f2bfa3a2bade02ffbdd97a667940fbd3
parent8fbe8fdfbc7576c58c59b605354457cc02076304
linux-user: Support target-to-host translation of mlockall argument

The argument to the mlockall system call is not necessarily the same on
all platforms and thus may require translation prior to passing to the
host.

For example, PowerPC 64 bit platforms define values for MCL_CURRENT
(0x2000) and MCL_FUTURE (0x4000) which are different from Intel platforms
(0x1 and 0x2, respectively)

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
18 files changed:
linux-user/aarch64/syscall.h
linux-user/alpha/syscall.h
linux-user/arm/syscall.h
linux-user/cris/syscall.h
linux-user/i386/syscall.h
linux-user/m68k/syscall.h
linux-user/microblaze/syscall.h
linux-user/mips/syscall.h
linux-user/mips64/syscall.h
linux-user/openrisc/syscall.h
linux-user/ppc/syscall.h
linux-user/s390x/syscall.h
linux-user/sh4/syscall.h
linux-user/sparc/syscall.h
linux-user/sparc64/syscall.h
linux-user/syscall.c
linux-user/unicore32/syscall.h
linux-user/x86_64/syscall.h