x86/asm: Use ASM_FLAG_OUT() to simplify atomic and bitop stubs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 9 Feb 2017 17:08:44 +0000 (17:08 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 15 Feb 2017 17:18:15 +0000 (17:18 +0000)
commitadc017b80b18af63de7da077ed3382acef1222ec
treef787c19a8ed7a48e2c0368b34e6b4e21b4da331b
parent6192e6378e094094906950120470a621d5b2977c
x86/asm: Use ASM_FLAG_OUT() to simplify atomic and bitop stubs

bitops.h cannot include asm_defns.h, because the static inlines in cpumasks.h
result in forward declarations of the bitops.h contents.  Move ASM_FLAG_OUT()
to a new asm/compiler.h to compensate.

While making changes, switch bool_t to bool and use named asm parameters.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/atomic.h
xen/include/asm-x86/bitops.h
xen/include/xen/compiler.h