diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-06-08 21:38:37 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-06-08 21:41:20 +0200 |
commit | 2823d4da5d8a0c222747b24eceb65f5b30717d02 (patch) | |
tree | d3c6753cdc372ee320aa6b9b289ff3c81987cbe3 /arch/x86/kernel/vm86_32.c | |
parent | x86/hweight: Get rid of the special calling convention (diff) | |
download | linux-2823d4da5d8a0c222747b24eceb65f5b30717d02.tar.xz linux-2823d4da5d8a0c222747b24eceb65f5b30717d02.zip |
x86, bitops: remove use of "sbb" to return CF
Use SETC instead of SBB to return the value of CF from assembly. Using
SETcc enables uniformity with other flags-returning pieces of assembly
code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1465414726-197858-2-git-send-email-hpa@linux.intel.com
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'arch/x86/kernel/vm86_32.c')
-rw-r--r-- | arch/x86/kernel/vm86_32.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/vm86_32.c b/arch/x86/kernel/vm86_32.c index 3dce1ca0a653..01f30e56f99e 100644 --- a/arch/x86/kernel/vm86_32.c +++ b/arch/x86/kernel/vm86_32.c @@ -440,10 +440,7 @@ static inline unsigned long get_vflags(struct kernel_vm86_regs *regs) static inline int is_revectored(int nr, struct revectored_struct *bitmap) { - __asm__ __volatile__("btl %2,%1\n\tsbbl %0,%0" - :"=r" (nr) - :"m" (*bitmap), "r" (nr)); - return nr; + return test_bit(nr, bitmap->__map); } #define val_byte(val, n) (((__u8 *)&val)[n]) |