x86/alt: Clean up the assembly used to generate alternatives
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Feb 2018 13:31:28 +0000 (13:31 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Mar 2018 14:44:16 +0000 (14:44 +0000)
commite95125108e8b1073e36759cc201a7778f1506f53
treee286d909afebf515f3e72752c388db31c0f6f396
parent4faa8fdd87b04514e7b885331f86ab5aa0d99608
x86/alt: Clean up the assembly used to generate alternatives

 * On the C side, switch to using local lables rather than hardcoded numbers.
 * Rename parameters and lables to be consistent with alt_instr names, and
   consistent between the the C and asm versions.
 * On the asm side, factor some expressions out into macros to aid clarity.
 * Consistently declare section attributes.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/include/asm-x86/alternative-asm.h
xen/include/asm-x86/alternative.h