s390/ap: rework assembler functions to use unions for in/out register variables
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 16 Nov 2018 14:48:10 +0000 (15:48 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 30 Nov 2018 06:22:05 +0000 (07:22 +0100)
commit159491f3b509bd8101199944dc7b0673b881c734
tree0e16242c5516d3fa0231267b06c127366acc7bb3
parente45a64975b021b6fc9fdd0dd0b74539ae1b5aa86
s390/ap: rework assembler functions to use unions for in/out register variables

The inline assembler functions ap_aqic() and ap_qact() used two
variables declared on the very same register. One variable was for
input only, the other for output. Looks like newer versions of the gcc
don't like this. Anyway it is a better coding to use one variable
(which may have a union data type) on one register for input and
output. So this patch introduces unions and uses only one variable now
for input and output for GR1 for the PQAP(QACT) and PQAP(QIC)
invocation.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ap.h