x86/misc: early cleanup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 May 2014 15:37:46 +0000 (17:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 16 May 2014 15:37:46 +0000 (17:37 +0200)
commitb3e61d8f27003ea3cd5ddd711fb7de6c5b842a4d
tree73a3fce9a6e138e57f4c6e89b710ee5aa8343a68
parentd4f88fc5d63cdccef668d6490190318364e2472a
x86/misc: early cleanup

Various bits of cleanup without functional impact as far as the series goes,
but make subsequent patches cleaner.

* WARN_ON(1) is just WARN().
* Replace hand-crafted rolled stack printing with fatal_trap().
* 16 BSS bytes is overkill for an empty idtr to triple fault with.  Construct
  it on the stack using an appropriate struct, and correct the asm memory
  constraint.
* Fix watchdog asymmetry in panic().  machine_halt() needs just as much
  watchdog care as machine_restart(), but it should be up to the arch
  implementation of machine_{halt,restart}() to play with the watchdog.
* unsigned and const correctness for trapstr(), along with whitespace cleanup.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/shutdown.c
xen/arch/x86/traps.c
xen/drivers/char/console.c