Skip to content

Commit

Permalink
s390/hypfs: use register pair instead of register asm
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
  • Loading branch information
Heiko Carstens authored and Vasily Gorbik committed Jun 28, 2021
1 parent 2a18a55 commit cf1ffce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions arch/s390/hypfs/hypfs_sprp.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@

static inline unsigned long __hypfs_sprp_diag304(void *data, unsigned long cmd)
{
register unsigned long _data asm("2") = (unsigned long) data;
register unsigned long _rc asm("3");
register unsigned long _cmd asm("4") = cmd;
union register_pair r1 = { .even = (unsigned long)data, };

asm volatile("diag %1,%2,0x304\n"
: "=d" (_rc) : "d" (_data), "d" (_cmd) : "memory");

return _rc;
asm volatile("diag %[r1],%[r3],0x304\n"
: [r1] "+&d" (r1.pair)
: [r3] "d" (cmd)
: "memory");
return r1.odd;
}

static unsigned long hypfs_sprp_diag304(void *data, unsigned long cmd)
Expand Down

0 comments on commit cf1ffce

Please sign in to comment.