mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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 <jchrist@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
f07a788895
commit
3611a2367c
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/sched.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/gmap.h>
|
||||
#include <asm/asm.h>
|
||||
|
||||
#define UVC_CC_OK 0
|
||||
#define UVC_CC_ERROR 1
|
||||
|
|
@ -436,13 +437,12 @@ static inline int __uv_call(unsigned long r1, unsigned long r2)
|
|||
int cc;
|
||||
|
||||
asm volatile(
|
||||
" .insn rrf,0xB9A40000,%[r1],%[r2],0,0\n"
|
||||
" ipm %[cc]\n"
|
||||
" srl %[cc],28\n"
|
||||
: [cc] "=d" (cc)
|
||||
" .insn rrf,0xb9a40000,%[r1],%[r2],0,0\n"
|
||||
CC_IPM(cc)
|
||||
: CC_OUT(cc, cc)
|
||||
: [r1] "a" (r1), [r2] "a" (r2)
|
||||
: "memory", "cc");
|
||||
return cc;
|
||||
: CC_CLOBBER_LIST("memory"));
|
||||
return CC_TRANSFORM(cc);
|
||||
}
|
||||
|
||||
static inline int uv_call(unsigned long r1, unsigned long r2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user