]> xenbits.xensource.com Git - xen.git/commit
x86/desc: Build boot_{,compat_}gdt[] in C
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Aug 2019 07:17:01 +0000 (09:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Aug 2019 07:17:01 +0000 (09:17 +0200)
commit60685089cb0ce4f3e1873c5e81f6ed3b77a492b2
tree74ac26efbad3b7118802f41ec3f5bf91b80c9e5b
parent762b9a2d990bba1f3aefe660cff0c37ad2e375bc
x86/desc: Build boot_{,compat_}gdt[] in C

... where we can at least get the compiler to fill in the surrounding space
without having to do it manually.  This also results in the symbols having
proper type/size information in the debug symbols.

Reorder 'raw' in the seg_desc_t union to allow for easier initialisation.

Leave a comment explaining the various restrictions we have on altering the
GDT layout.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Introduce SEL2GDT(). Correct GDT indices in public header comments.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/Makefile
xen/arch/x86/boot/head.S
xen/arch/x86/boot/x86_64.S
xen/arch/x86/desc.c [new file with mode: 0644]
xen/include/asm-x86/desc.h
xen/include/public/arch-x86/xen-x86_64.h