x86: replace __ASM_{CL,ST}AC
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Jan 2021 10:45:07 +0000 (11:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Jan 2021 10:45:07 +0000 (11:45 +0100)
commit6721f01ba1ccb7a32778e485d15e58d2eb6184f2
treeb48f2e7b6f57507d100651ec1c74a7319c671a49
parentede2583fa1a28a969c5609b86aa82a7ba9f19a26
x86: replace __ASM_{CL,ST}AC

Introduce proper assembler macros instead, enabled only when the
assembler itself doesn't support the insns. To avoid duplicating the
macros for assembly and C files, have them processed into asm-macros.h.
This in turn requires adding a multiple inclusion guard when generating
that header.

No change to generated code.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/Makefile
xen/arch/x86/arch.mk
xen/arch/x86/asm-macros.c
xen/include/asm-x86/asm-defns.h [new file with mode: 0644]
xen/include/asm-x86/asm_defns.h