Mesa (master): rtasm: The heap is NX on 64-bit Cygwin, so use the rtasm_exec_malloc() implementation which uses mmap()

Jon TURNEY jturney at kemper.freedesktop.org
Fri Oct 18 13:17:53 UTC 2013


Module: Mesa
Branch: master
Commit: 87e84acbfd5e4b9cf046fa29786b8eaea4442c71
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=87e84acbfd5e4b9cf046fa29786b8eaea4442c71

Author: Jon TURNEY <jon.turney at dronecode.org.uk>
Date:   Sat Sep 21 17:16:37 2013 +0100

rtasm: The heap is NX on 64-bit Cygwin, so use the rtasm_exec_malloc() implementation which uses mmap()

The heap is NX on 64-bit Cygwin, so use the rtasm_exec_malloc() implementation
which uses mmap() to allocate an anonymous page with execute permission, rather
than the one which just uses malloc().

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/auxiliary/rtasm/rtasm_execmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
index 8f7cc20..3c4b048 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
@@ -49,7 +49,7 @@
 #include <windows.h>
 #endif
 
-#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HAIKU)
+#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_CYGWIN)
 
 
 /*




More information about the mesa-commit mailing list