diff options
author | Emilio G. Cota | 2017-07-15 08:28:47 +0200 |
---|---|---|
committer | Richard Henderson | 2017-10-24 22:53:42 +0200 |
commit | 5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9 (patch) | |
tree | a72d9970a7ad3d12caa1afc5b60ba449369e643c /include/qemu/osdep.h | |
parent | tcg: allocate optimizer temps with tcg_malloc (diff) | |
download | qemu-5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9.tar.gz qemu-5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9.tar.xz qemu-5fa64b3130af9a45e7e2a904bde1f8cfb72be5c9.zip |
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 826650c58a..281782d526 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); |