Supporting new thunk spec - adding relevant memflags

Signed-off-by: Ben Goz <ben.goz@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@amd.com>


[ROCm/ROCR-Runtime commit: 25441796bd]
This commit is contained in:
Ben Goz authored and Oded Gabbay committed 2015-02-01 14:33:33 +02:00
1 orang tua e1a60944a7
melakukan 1391a75289
2 files changed
+21 -3

No files matched your search

+1 -1
Melihat File
@@ -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);