projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9222f60
)
x86/asm: Use CC_SET()/CC_OUT() in __gen_sigismember()
author
Uros Bizjak
<ubizjak@gmail.com>
Tue, 14 Aug 2018 16:59:51 +0000
(18:59 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 30 Aug 2018 11:02:31 +0000
(13:02 +0200)
Replace open-coded set instructions with CC_SET()/CC_OUT().
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lkml.kernel.org/r/20180814165951.13538-1-ubizjak@gmail.com
arch/x86/include/asm/signal.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/signal.h
b/arch/x86/include/asm/signal.h
index
5f9012f
..
33d3c88
100644
(file)
--- a/
arch/x86/include/asm/signal.h
+++ b/
arch/x86/include/asm/signal.h
@@
-39,6
+39,7
@@
extern void do_signal(struct pt_regs *regs);
#define __ARCH_HAS_SA_RESTORER
+#include <asm/asm.h>
#include <uapi/asm/sigcontext.h>
#ifdef __i386__
@@
-86,9
+87,9
@@
static inline int __const_sigismember(sigset_t *set, int _sig)
static inline int __gen_sigismember(sigset_t *set, int _sig)
{
-
unsigned char
ret;
- asm("btl %2,%1
\n\tsetc %0"
- :
"=qm"(ret) : "m"(*set), "Ir"(_sig-1) : "cc"
);
+
bool
ret;
+ asm("btl %2,%1
" CC_SET(c)
+ :
CC_OUT(c) (ret) : "m"(*set), "Ir"(_sig-1)
);
return ret;
}