]> xenbits.xensource.com Git - xen.git/commit
x86/boot: install trap handlers much earlier on boot
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 May 2014 15:39:07 +0000 (17:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 16 May 2014 15:39:07 +0000 (17:39 +0200)
commit279840d5ea6462a132cd2d69fe486fd7813e8483
tree49e747d294885d45fd510c861a64d14839d40281
parent342e5cc05e84174e3e07b13870b8577a946ca8b1
x86/boot: install trap handlers much earlier on boot

Patch the trap handlers into the master idt very early on boot, and setup &
load the GDT, IDT, TR and LDT. Load the IDT before the TR so we stand a chance
of catching an invalid TSS exception rather than triple faulting.

This provides full exception support far earlier on boot than previously.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/setup.c
xen/arch/x86/smpboot.c
xen/arch/x86/traps.c
xen/arch/x86/x86_64/traps.c
xen/include/asm-x86/system.h
xen/include/xen/sched.h