[Mesa-dev] [PATCH] mesa: Make Haiku use mmap vs simple malloc for exec memory

Jose Fonseca jfonseca at vmware.com
Sat Apr 27 09:15:41 PDT 2013


Seems fine to me. Though you might also want to update src/gallium/auxiliary/rtasm/rtasm_execmem.c while you're at it.

Jose

----- Original Message -----
> * Haiku recently got DEP support which can result in the
>   OS locking down execution in non-exec flagged memory.
> ---
>  src/mesa/main/execmem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c
> index bb9c70a..5f31966 100644
> --- a/src/mesa/main/execmem.c
> +++ b/src/mesa/main/execmem.c
> @@ -37,7 +37,7 @@
>  
>  
>  
> -#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) ||
> defined(__sun)
> +#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) ||
> defined(__sun) || defined(__HAIKU__)
>  
>  /*
>   * Allocate a large block of memory which can hold code then dole it out
> --
> 1.8.2.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list