x86: a little bit of 16-bit video mode setting code cleanup
authorJan Beulich <jbeulich@suse.com>
Mon, 2 Sep 2019 12:45:18 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Sep 2019 12:45:18 +0000 (14:45 +0200)
commit242d78ae7636f9068f4bcd056d57c126c8124b27
tree00df91090286880397292a5ca6ef04da40989e75
parentd1235883bf4e61be0b38e6393d445374b6e52492
x86: a little bit of 16-bit video mode setting code cleanup

To "compensate" for the code size growth by an earlier change:
- drop "trampoline" labels (in almost all cases the target label is
  reachable with an 8-bit-displacement branch anyway, and a single 16-
  bit-displacement branch is still better than a pair of two branches)
- drop an entirely dead insn from wakeup.S:mode_setw
- reduce code size in a few other (obvious I hope) cases, by more
  suitable insn/operands selection

Also drop redundant #define-s (move suitable #include a little earlier
instead) and add two alignment directives.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/trampoline.S
xen/arch/x86/boot/video.S
xen/arch/x86/boot/wakeup.S