Commit f78bcb2e authored by Alexander Gordeev's avatar Alexander Gordeev Committed by Heiko Carstens

s390/extmem: fix virtual vs physical address confusion

Fix virtual vs physical address confusion. This does not fix a bug
since virtual and physical address spaces are currently the same.
Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 8d16ce14
...@@ -136,7 +136,7 @@ dcss_diag(int *func, void *parameter, ...@@ -136,7 +136,7 @@ dcss_diag(int *func, void *parameter,
unsigned long rx, ry; unsigned long rx, ry;
int rc; int rc;
rx = (unsigned long) parameter; rx = virt_to_phys(parameter);
ry = (unsigned long) *func; ry = (unsigned long) *func;
diag_stat_inc(DIAG_STAT_X064); diag_stat_inc(DIAG_STAT_X064);
...@@ -178,7 +178,7 @@ query_segment_type (struct dcss_segment *seg) ...@@ -178,7 +178,7 @@ query_segment_type (struct dcss_segment *seg)
/* initialize diag input parameters */ /* initialize diag input parameters */
qin->qopcode = DCSS_FINDSEGA; qin->qopcode = DCSS_FINDSEGA;
qin->qoutptr = (unsigned long) qout; qin->qoutptr = virt_to_phys(qout);
qin->qoutlen = sizeof(struct qout64); qin->qoutlen = sizeof(struct qout64);
memcpy (qin->qname, seg->dcss_name, 8); memcpy (qin->qname, seg->dcss_name, 8);
......
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