mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
s390/diag: 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
5a5897d65b
commit
a6122f690a
@ -16,6 +16,7 @@
|
||||
#include <asm/diag.h>
|
||||
#include <asm/trace/diag.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/asm.h>
|
||||
#include "entry.h"
|
||||
|
||||
struct diag_stat {
|
||||
@ -307,16 +308,15 @@ EXPORT_SYMBOL(diag26c);
|
||||
|
||||
int diag49c(unsigned long subcode)
|
||||
{
|
||||
int rc;
|
||||
int cc;
|
||||
|
||||
diag_stat_inc(DIAG_STAT_X49C);
|
||||
asm volatile(
|
||||
" diag %[subcode],0,0x49c\n"
|
||||
" ipm %[rc]\n"
|
||||
" srl %[rc],28\n"
|
||||
: [rc] "=d" (rc)
|
||||
CC_IPM(cc)
|
||||
: CC_OUT(cc, cc)
|
||||
: [subcode] "d" (subcode)
|
||||
: "cc");
|
||||
return rc;
|
||||
: CC_CLOBBER);
|
||||
return CC_TRANSFORM(cc);
|
||||
}
|
||||
EXPORT_SYMBOL(diag49c);
|
||||
|
Loading…
Reference in New Issue
Block a user