summaryrefslogtreecommitdiffstats
path: root/linux-user/i386
diff options
context:
space:
mode:
authorTom Musta2014-08-12 20:53:42 +0200
committerRiku Voipio2014-08-22 14:06:35 +0200
commit6f6a40328b6f4679082583c2b3a949cda451a991 (patch)
tree90c90e80f2bfa3a2bade02ffbdd97a667940fbd3 /linux-user/i386
parentlinux-user: clock_nanosleep errno Handling on PPC (diff)
downloadqemu-6f6a40328b6f4679082583c2b3a949cda451a991.tar.gz
qemu-6f6a40328b6f4679082583c2b3a949cda451a991.tar.xz
qemu-6f6a40328b6f4679082583c2b3a949cda451a991.zip
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>
Diffstat (limited to 'linux-user/i386')
-rw-r--r--linux-user/i386/syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/i386/syscall.h b/linux-user/i386/syscall.h
index acf685622d..906aaac0b1 100644
--- a/linux-user/i386/syscall.h
+++ b/linux-user/i386/syscall.h
@@ -148,3 +148,5 @@ struct target_vm86plus_struct {
#define TARGET_CLONE_BACKWARDS
#define TARGET_MINSIGSTKSZ 2048
+#define TARGET_MLOCKALL_MCL_CURRENT 1
+#define TARGET_MLOCKALL_MCL_FUTURE 2