diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2022-05-29 19:55:06 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2022-06-01 13:03:16 +0300 |
commit | 79a74dac447be957178e8596706b1db3d5c714f4 (patch) | |
tree | 1ec7c25ba39058f647b8c0084bce6228025a7e7f /arch/s390/include/asm/uaccess.h | |
parent | 29ccaa4b35ea874ddd50518e5c2c746b9238a792 (diff) | |
download | linux-79a74dac447be957178e8596706b1db3d5c714f4.tar.xz |
s390/uaccess: use symbolic names for inline assembler operands
Make code easier to read by using symbolic names.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/uaccess.h')
-rw-r--r-- | arch/s390/include/asm/uaccess.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index 1f150a7cfb3d..5ffb88b3fdee 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h @@ -278,12 +278,12 @@ int __noreturn __put_kernel_bad(void); int __rc; \ \ asm volatile( \ - "0: " insn " %2,%1\n" \ - "1: xr %0,%0\n" \ + "0: " insn " %[_val],%[_to]\n" \ + "1: xr %[rc],%[rc]\n" \ "2:\n" \ EX_TABLE_UA(0b,2b,%0) EX_TABLE_UA(1b,2b,%0) \ - : "=d" (__rc), "+Q" (*(to)) \ - : "d" (val) \ + : [rc] "=d" (__rc), [_to] "+Q" (*(to)) \ + : [_val] "d" (val) \ : "cc"); \ __rc; \ }) @@ -321,12 +321,12 @@ int __noreturn __get_kernel_bad(void); int __rc; \ \ asm volatile( \ - "0: " insn " %1,%2\n" \ - "1: xr %0,%0\n" \ + "0: " insn " %[_val],%[_from]\n" \ + "1: xr %[rc],%[rc]\n" \ "2:\n" \ EX_TABLE_UA(0b,2b,%0) EX_TABLE_UA(1b,2b,%0) \ - : "=d" (__rc), "+d" (val) \ - : "Q" (*(from)) \ + : [rc] "=d" (__rc), [_val] "+d" (val) \ + : [_from] "Q" (*(from)) \ : "cc"); \ __rc; \ }) |