Searched refs:exec_mem (Results 1 - 3 of 3) sorted by relevance

/external/mesa3d/src/mapi/mapi/
H A Du_execmem.c46 static unsigned char *exec_mem = (unsigned char *)0; variable
80 if (!exec_mem)
81 exec_mem = mmap(NULL, EXEC_MAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE,
84 return (exec_mem != MAP_FAILED);
100 exec_mem = VirtualAlloc(NULL, EXEC_MAP_SIZE, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
102 return (exec_mem != NULL);
113 exec_mem = malloc(EXEC_MAP_SIZE);
115 return (exec_mem != NULL);
136 addr = exec_mem + head;
/external/mesa3d/src/mesa/main/
H A Dexecmem.c65 static unsigned char *exec_mem = NULL; variable
82 if (!exec_mem)
83 exec_mem = mmap(NULL, EXEC_HEAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE,
86 return (exec_mem != MAP_FAILED);
107 addr = exec_mem + block->ofs;
124 struct mem_block *block = mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem);
/external/mesa3d/src/gallium/auxiliary/rtasm/
H A Drtasm_execmem.c68 static unsigned char *exec_mem = NULL; variable
77 if (!exec_mem)
78 exec_mem = (unsigned char *) mmap(0, EXEC_HEAP_SIZE,
100 addr = exec_mem + block->ofs;
116 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem);

Completed in 133 milliseconds