Supporting new thunk spec - adding relevant memflags

Signed-off-by: Ben Goz <ben.goz@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com>
此提交包含在:
Ben Goz
2015-02-01 14:33:33 +02:00
提交者 Oded Gabbay
父節點 f24aa620ed
當前提交 25441796bd
共有 2 個檔案被更改,包括 21 行新增3 行删除
+1 -1
查看文件
@@ -117,7 +117,7 @@ hsaKmtAllocMemory(
err = posix_memalign(MemoryAddress, page_size, SizeInBytes);
if (err != 0)
return HSAKMT_STATUS_NO_MEMORY;
if (MemFlags.ui32.ExecAccess) {
if (MemFlags.ui32.ExecuteAccess) {
err = mprotect(*MemoryAddress, SizeInBytes, PROT_READ | PROT_WRITE | PROT_EXEC);
if (err != 0) {
free(*MemoryAddress);