]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/sigp: use register pair instead of register asm
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 9 Jun 2021 20:59:13 +0000 (22:59 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Fri, 18 Jun 2021 14:41:22 +0000 (16:41 +0200)
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/sigp.h

index 53ee795cd3d3995f25fc61a94c2ea47eb89cf4b1..edee63da08e7274005bed312f6740c208b1fe7eb 100644 (file)
 static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
                                u32 *status)
 {
-       register unsigned long reg1 asm ("1") = parm;
+       union register_pair r1 = { .odd = parm, };
        int cc;
 
        asm volatile(
-               "       sigp    %1,%2,0(%3)\n"
-               "       ipm     %0\n"
-               "       srl     %0,28\n"
-               : "=d" (cc), "+d" (reg1) : "d" (addr), "a" (order) : "cc");
-       *status = reg1;
+               "       sigp    %[r1],%[addr],0(%[order])\n"
+               "       ipm     %[cc]\n"
+               "       srl     %[cc],28\n"
+               : [cc] "=&d" (cc), [r1] "+&d" (r1.pair)
+               : [addr] "d" (addr), [order] "a" (order)
+               : "cc");
+       *status = r1.even;
        return cc;
 }