Modify HW dbg thunk,to adapt to new KFD-thunk interface

Signed-off-by: Yair Shachar <yair.shachar@amd.com>


[ROCm/ROCR-Runtime commit: 89188a6d6c]
Este commit está contenido en:
Yair Shachar
2015-02-08 21:44:47 +02:00
cometido por Oded Gabbay
padre 6afb37dbca
commit b6d2361169
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
+6
Ver fichero
@@ -129,6 +129,9 @@ hsaKmtDbgWavefrontControl(
unsigned char* run_ptr = (unsigned char*)args + sizeof(*args);
/* save variable content pointer for kfd */
args->content_ptr = (void *)run_ptr;
/* insert items, and increment pointer accordingly */
*((HSA_DBG_WAVEOP*)run_ptr) = Operand;
@@ -220,10 +223,13 @@ hsaKmtDbgAddressWatch(
args->gpu_id = gpu_id;
args->buf_size_in_bytes = buff_size;
/* increment pointer to the start of the non fixed part */
unsigned char* run_ptr = (unsigned char*)args + sizeof(*args);
/* save variable content pointer for kfd */
args->content_ptr = (void *)run_ptr;
/* insert items, and increment pointer accordingly */
*((HSAuint32*)run_ptr) = NumWatchPoints;