Revert "Add execution property in register memory for gfx801."

This reverts commit abf7770d46.


[ROCm/ROCR-Runtime commit: 4c4df38035]
이 커밋은 다음에 포함됨:
Oded Gabbay가 2015-04-28 17:50:00 +03:00를 커밋했습니다
1 부모 fcf6e22216
커밋 b6c7551747
2 파일이 변경됨
+2 -15

검색과 일치하는 파일 없음

+1 -2
파일 보기
@@ -364,8 +364,7 @@ HSAKMT_STATUS
HSAKMTAPI
hsaKmtRegisterMemory(
void* MemoryAddress, //IN (page-aligned)
HSAuint64 MemorySizeInBytes, //IN (page-aligned)
int ExecuteAccess
HSAuint64 MemorySizeInBytes //IN (page-aligned)
);
+1 -13
파일 보기
@@ -170,23 +170,11 @@ HSAKMT_STATUS
HSAKMTAPI
hsaKmtRegisterMemory(
void *MemoryAddress, /* IN (page-aligned) */
HSAuint64 MemorySizeInBytes, /* IN (page-aligned) */
int ExecuteAccess
HSAuint64 MemorySizeInBytes /* IN (page-aligned) */
)
{
CHECK_KFD_OPEN();
int err;
/* for CZ ib execution */
if (ExecuteAccess) {
err = mprotect(MemoryAddress, MemorySizeInBytes,
PROT_READ | PROT_WRITE | PROT_EXEC);
if (err != 0) {
free(MemoryAddress);
return err;
}
}
return HSAKMT_STATUS_SUCCESS;
}