From 005469005df6ba5f80e382d5371c6d069c27738b Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 18 Oct 2005 13:29:59 +0000 Subject: Add _mesa_exec_malloc() and _mesa_exec_free() for allocating executable memory. Based on Thomas Hellstrom's patch. TODO: glapi.c also needs this, but cannot access this code. --- src/mesa/x86/rtasm/x86sse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/x86/rtasm') diff --git a/src/mesa/x86/rtasm/x86sse.c b/src/mesa/x86/rtasm/x86sse.c index 40ffc03204..0c9ffe25fa 100644 --- a/src/mesa/x86/rtasm/x86sse.c +++ b/src/mesa/x86/rtasm/x86sse.c @@ -971,13 +971,13 @@ struct x86_reg x86_fn_arg( struct x86_function *p, void x86_init_func( struct x86_function *p ) { - p->store = _mesa_malloc(1024); + p->store = _mesa_exec_malloc(1024); p->csr = p->store; } void x86_release_func( struct x86_function *p ) { - _mesa_free(p->store); + _mesa_exec_free(p->store); } -- cgit v1.2.3