Commit 25130c1a authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/sigp: use register pair instead of register asm

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 6a7b4e4e
...@@ -41,15 +41,17 @@ ...@@ -41,15 +41,17 @@
static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm, static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
u32 *status) u32 *status)
{ {
register unsigned long reg1 asm ("1") = parm; union register_pair r1 = { .odd = parm, };
int cc; int cc;
asm volatile( asm volatile(
" sigp %1,%2,0(%3)\n" " sigp %[r1],%[addr],0(%[order])\n"
" ipm %0\n" " ipm %[cc]\n"
" srl %0,28\n" " srl %[cc],28\n"
: "=d" (cc), "+d" (reg1) : "d" (addr), "a" (order) : "cc"); : [cc] "=&d" (cc), [r1] "+&d" (r1.pair)
*status = reg1; : [addr] "d" (addr), [order] "a" (order)
: "cc");
*status = r1.even;
return cc; return cc;
} }
......
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