Commit d99aea73 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/facility: get rid of register asm

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent dbb8864b
...@@ -64,13 +64,15 @@ static inline int test_facility(unsigned long nr) ...@@ -64,13 +64,15 @@ static inline int test_facility(unsigned long nr)
static inline unsigned long __stfle_asm(u64 *stfle_fac_list, int size) 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( asm volatile(
".insn s,0xb2b00000,0(%1)" /* stfle */ " lgr 0,%[reg0]\n"
: "+d" (reg0) " .insn s,0xb2b00000,%[list]\n" /* stfle */
: "a" (stfle_fac_list) " lgr %[reg0],0\n"
: "memory", "cc"); : [reg0] "+&d" (reg0), [list] "+Q" (*stfle_fac_list)
:
: "memory", "cc", "0");
return reg0; return reg0;
} }
......
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