rtasm: The heap is NX on 64-bit Cygwin, so use the rtasm_exec_malloc() implementation...
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 21 Sep 2013 16:16:37 +0000 (17:16 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 18 Oct 2013 13:16:27 +0000 (14:16 +0100)
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@dronecode.org.uk>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/rtasm/rtasm_execmem.c

index 8f7cc2035b5c291b63b4c7ed758ae1e2d21b7f19..3c4b0483ae82b958ce108193f16af797d7c67838 100644 (file)
@@ -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)
 
 
 /*