]> xenbits.xensource.com Git - xen.git/commit
x86/misc: post cleanup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 May 2014 12:24:45 +0000 (14:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 May 2014 12:24:45 +0000 (14:24 +0200)
commitb30d3338f8188e7404efde529241bb77d3983ef1
tree352f290fafc4971d9db4596544033f6a10ecdc5f
parente9706ae4cf6beb680583714f51ef8064fb2648b5
x86/misc: post cleanup

* panic() now works on early boot.  Replace EARLY_FAIL()
* Cleanup __set_intr_gate() & friends.  The master IDT is fully constructed on
  early boot, and only subsequently altered on the crash path.  Make them
  private to traps.c, move them into .init, and remove the loop over all idts,
  as __set_intr_gate() will never find an AP to patch. (For some reason,
  leaving out the noinline causes ~1.5k of code bloat from GCC inlining
  everything)
* No need to clear X86_EFLAGS_NT in cpu_init().  This is covered by the eflags
  reset in __high_start().
* Missing '\n' from unexpected MCE printk.
* load_system_tables() is x86 specific.  Move its declaration into an x86 header.

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/cpu/mcheck/mce.c
xen/arch/x86/setup.c
xen/arch/x86/traps.c
xen/include/asm-x86/desc.h
xen/include/asm-x86/system.h
xen/include/xen/sched.h