]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/facility: get rid of register asm
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 14 Jun 2021 19:30:44 +0000 (21:30 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Fri, 18 Jun 2021 14:41:23 +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/facility.h

index 948e2616fe9cc7bf2ce5d2e4d50155f6895cda42..e3aa354ab9f461176a3e271785b14814ec5f2c8b 100644 (file)
@@ -64,13 +64,15 @@ static inline int test_facility(unsigned long nr)
 
 static inline unsigned long __stfle_asm(u64 *stfle_fac_list, int size)
 {
-       register unsigned long reg0 asm("0") = size - 1;
+       unsigned long reg0 = size - 1;
 
        asm volatile(
-               ".insn s,0xb2b00000,0(%1)" /* stfle */
-               : "+d" (reg0)
-               : "a" (stfle_fac_list)
-               : "memory", "cc");
+               "       lgr     0,%[reg0]\n"
+               "       .insn   s,0xb2b00000,%[list]\n" /* stfle */
+               "       lgr     %[reg0],0\n"
+               : [reg0] "+&d" (reg0), [list] "+Q" (*stfle_fac_list)
+               :
+               : "memory", "cc", "0");
        return reg0;
 }