Fix KFD ioctl ABI

This change breaks the ABI, and aligns it with the upstream ABI.
It also fixes some ioctl structures that are not 64-bit safe and
consolidates ioctl numbers.

Change-Id: Ib79944721534bd55a5299c5baf7bb5b3246cccd2
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>


[ROCm/ROCR-Runtime commit: 15764e2897]
This commit is contained in:
Felix Kuehling
2017-05-09 14:59:13 -04:00
parent 2cc06c88ff
commit e5b910be20
2 changed files with 77 additions and 77 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ hsaKmtDbgWavefrontControl(
unsigned char* run_ptr = (unsigned char*)args + sizeof(*args);
/* save variable content pointer for kfd */
args->content_ptr = (void *)run_ptr;
args->content_ptr = (uint64_t)run_ptr;
/* insert items, and increment pointer accordingly */
@@ -258,7 +258,7 @@ hsaKmtDbgAddressWatch(
unsigned char* run_ptr = (unsigned char*)args + sizeof(*args);
/* save variable content pointer for kfd */
args->content_ptr = (void *)run_ptr;
args->content_ptr = (uint64_t)run_ptr;
/* insert items, and increment pointer accordingly */
*((HSAuint32*)run_ptr) = NumWatchPoints;