diff --git a/include/hsakmt.h b/include/hsakmt.h index 321df6e6c9..fd2788803d 100644 --- a/include/hsakmt.h +++ b/include/hsakmt.h @@ -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) ); diff --git a/src/memory.c b/src/memory.c index 0be2a0f738..68d86d5e5e 100644 --- a/src/memory.c +++ b/src/memory.c @@ -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; }