Commit 0ec5117f authored by Gerald Schaefer's avatar Gerald Schaefer Committed by Heiko Carstens
Browse files

s390/appldata: fix virtual vs physical address confusion



Fix virtual vs physical address confusion (which currently are the same).

Reviewed-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent d8132003
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,13 +54,13 @@ static inline int appldata_asm(struct appldata_parameter_list *parm_list,
	parm_list->function = fn;
	parm_list->parlist_length = sizeof(*parm_list);
	parm_list->buffer_length = length;
	parm_list->product_id_addr = (unsigned long) id;
	parm_list->product_id_addr = virt_to_phys(id);
	parm_list->buffer_addr = virt_to_phys(buffer);
	diag_stat_inc(DIAG_STAT_X0DC);
	asm volatile(
		"	diag	%1,%0,0xdc"
		: "=d" (ry)
		: "d" (parm_list), "m" (*parm_list), "m" (*id)
		: "d" (virt_to_phys(parm_list)), "m" (*parm_list), "m" (*id)
		: "cc");
	return ry;
}