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

This reverts commit 5ed05c99b3.
Этот коммит содержится в:
Oded Gabbay
2015-04-28 17:50:00 +03:00
родитель 112f7e751a
Коммит 4c4df38035
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;
}