diff options
author | Emilio G. Cota <cota@braap.org> | 2017-07-15 02:28:47 -0400 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2017-10-24 13:53:42 -0700 |
commit | 5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9 (patch) | |
tree | a72d9970a7ad3d12caa1afc5b60ba449369e643c /include/qemu/osdep.h | |
parent | 34184b071817b4f9edbfd1aa2225c196f05a0947 (diff) | |
download | qemu-5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9.zip qemu-5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9.tar.gz qemu-5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9.tar.bz2 |
osdep: introduce qemu_mprotect_rwx/none
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r-- | include/qemu/osdep.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 826650c..281782d 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -371,6 +371,8 @@ void sigaction_invoke(struct sigaction *action, #endif int qemu_madvise(void *addr, size_t len, int advice); +int qemu_mprotect_rwx(void *addr, size_t size); +int qemu_mprotect_none(void *addr, size_t size); int qemu_open(const char *name, int flags, ...); int qemu_close(int fd); |