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:
1 orang tua
e1a60944a7
melakukan
1391a75289
2 files changed
+21
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user