Supporting new thunk spec - adding relevant memflags
Signed-off-by: Ben Goz <ben.goz@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@amd.com>
이 커밋은 다음에 포함됨:
+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);
|
||||
|
||||
새 이슈에서 참조
사용자 차단