diff options
author | Ilya Leoshkevich | 2022-09-06 02:08:35 +0200 |
---|---|---|
committer | Laurent Vivier | 2022-09-27 09:30:09 +0200 |
commit | 9f22020b91ae235be2b27c47d11e842872ec5e85 (patch) | |
tree | 46c13e367d65343cfc413bd0ee055b156c24f41f /linux-user/hppa | |
parent | linux-user: Show timespec on strace for futex() (diff) | |
download | qemu-9f22020b91ae235be2b27c47d11e842872ec5e85.tar.gz qemu-9f22020b91ae235be2b27c47d11e842872ec5e85.tar.xz qemu-9f22020b91ae235be2b27c47d11e842872ec5e85.zip |
linux-user: Provide MADV_* definitions
Provide MADV_* definitions using target_mman.h header, similar to what
kernel does. Most architectures use the same values, with the exception
of alpha and hppa.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220906000839.1672934-2-iii@linux.ibm.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/hppa')
-rw-r--r-- | linux-user/hppa/target_mman.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/linux-user/hppa/target_mman.h b/linux-user/hppa/target_mman.h new file mode 100644 index 0000000000..66dd9f7941 --- /dev/null +++ b/linux-user/hppa/target_mman.h @@ -0,0 +1,15 @@ +#ifndef HPPA_TARGET_MMAN_H +#define HPPA_TARGET_MMAN_H + +#define TARGET_MADV_MERGEABLE 65 +#define TARGET_MADV_UNMERGEABLE 66 +#define TARGET_MADV_HUGEPAGE 67 +#define TARGET_MADV_NOHUGEPAGE 68 +#define TARGET_MADV_DONTDUMP 69 +#define TARGET_MADV_DODUMP 70 +#define TARGET_MADV_WIPEONFORK 71 +#define TARGET_MADV_KEEPONFORK 72 + +#include "../generic/target_mman.h" + +#endif |