Skip to content

Commit eade39c

Browse files
committed
s390/sthyi: 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 e7583c5 commit eade39c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/s390/kernel/sthyi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <asm/ebcdic.h>
1818
#include <asm/facility.h>
1919
#include <asm/sthyi.h>
20+
#include <asm/asm.h>
2021
#include "entry.h"
2122

2223
#define DED_WEIGHT 0xffff
@@ -425,13 +426,12 @@ static int sthyi(u64 vaddr, u64 *rc)
425426

426427
asm volatile(
427428
".insn rre,0xB2560000,%[r1],%[r2]\n"
428-
"ipm %[cc]\n"
429-
"srl %[cc],28\n"
430-
: [cc] "=&d" (cc), [r2] "+&d" (r2.pair)
429+
CC_IPM(cc)
430+
: CC_OUT(cc, cc), [r2] "+&d" (r2.pair)
431431
: [r1] "d" (r1.pair)
432-
: "memory", "cc");
432+
: CC_CLOBBER_LIST("memory"));
433433
*rc = r2.odd;
434-
return cc;
434+
return CC_TRANSFORM(cc);
435435
}
436436

437437
static int fill_dst(void *dst, u64 *rc)

0 commit comments

Comments
 (0)