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

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
...@@ -54,13 +54,13 @@ static inline int appldata_asm(struct appldata_parameter_list *parm_list, ...@@ -54,13 +54,13 @@ static inline int appldata_asm(struct appldata_parameter_list *parm_list,
parm_list->function = fn; parm_list->function = fn;
parm_list->parlist_length = sizeof(*parm_list); parm_list->parlist_length = sizeof(*parm_list);
parm_list->buffer_length = length; 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); parm_list->buffer_addr = virt_to_phys(buffer);
diag_stat_inc(DIAG_STAT_X0DC); diag_stat_inc(DIAG_STAT_X0DC);
asm volatile( asm volatile(
" diag %1,%0,0xdc" " diag %1,%0,0xdc"
: "=d" (ry) : "=d" (ry)
: "d" (parm_list), "m" (*parm_list), "m" (*id) : "d" (virt_to_phys(parm_list)), "m" (*parm_list), "m" (*id)
: "cc"); : "cc");
return ry; return ry;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment