x86/boot: Further minor GDT corrections
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Aug 2019 12:18:06 +0000 (13:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Aug 2019 18:41:29 +0000 (19:41 +0100)
commitec92fcd1d089855a170b77c98055e1e49592aa5b
tree4547e93d6272a0109229a0f3053dcda5fc1d4df1
parentbb70bcb65b9708812bfb3f2cb86189fc347da2d7
x86/boot: Further minor GDT corrections

gdt_boot_descr and gdt_48 disagree on how long trampoline_gdt is.

Introduce an end label for each GDT and have the linker calculate their size,
rather than hard coding it.

Also, just as with c/s af292b41e9, there is no point forcing the CPU to set
Access bits.  Fix all affected GDTs.

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