diff options
author | Tom Musta <tommusta@gmail.com> | 2014-08-12 13:53:42 -0500 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-08-22 15:06:35 +0300 |
commit | 6f6a40328b6f4679082583c2b3a949cda451a991 (patch) | |
tree | 90c90e80f2bfa3a2bade02ffbdd97a667940fbd3 /linux-user/s390x | |
parent | 8fbe8fdfbc7576c58c59b605354457cc02076304 (diff) | |
download | qemu-6f6a40328b6f4679082583c2b3a949cda451a991.zip qemu-6f6a40328b6f4679082583c2b3a949cda451a991.tar.gz qemu-6f6a40328b6f4679082583c2b3a949cda451a991.tar.bz2 |
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/s390x')
-rw-r--r-- | linux-user/s390x/syscall.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/s390x/syscall.h b/linux-user/s390x/syscall.h index b11a3b2..35f170a 100644 --- a/linux-user/s390x/syscall.h +++ b/linux-user/s390x/syscall.h @@ -25,3 +25,5 @@ struct target_pt_regs { #define TARGET_CLONE_BACKWARDS2 #define TARGET_MINSIGSTKSZ 2048 +#define TARGET_MLOCKALL_MCL_CURRENT 1 +#define TARGET_MLOCKALL_MCL_FUTURE 2 |