Skip to content

Commit 3611a23

Browse files
committed
s390/uv: Convert to use flag output macros
Use flag output macros in inline asm to allow for better code generation if the compiler has support for the flag output constraint. Reviewed-by: Juergen Christ <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent f07a788 commit 3611a23

File tree

1 file changed

+6
-6
lines changed
  • arch/s390/include/asm

1 file changed

+6
-6
lines changed

arch/s390/include/asm/uv.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/sched.h>
1818
#include <asm/page.h>
1919
#include <asm/gmap.h>
20+
#include <asm/asm.h>
2021

2122
#define UVC_CC_OK 0
2223
#define UVC_CC_ERROR 1
@@ -436,13 +437,12 @@ static inline int __uv_call(unsigned long r1, unsigned long r2)
436437
int cc;
437438

438439
asm volatile(
439-
" .insn rrf,0xB9A40000,%[r1],%[r2],0,0\n"
440-
" ipm %[cc]\n"
441-
" srl %[cc],28\n"
442-
: [cc] "=d" (cc)
440+
" .insn rrf,0xb9a40000,%[r1],%[r2],0,0\n"
441+
CC_IPM(cc)
442+
: CC_OUT(cc, cc)
443443
: [r1] "a" (r1), [r2] "a" (r2)
444-
: "memory", "cc");
445-
return cc;
444+
: CC_CLOBBER_LIST("memory"));
445+
return CC_TRANSFORM(cc);
446446
}
447447

448448
static inline int uv_call(unsigned long r1, unsigned long r2)

0 commit comments

Comments
 (0)