kernel64 - Fix disabled interrupts during dbg/bpt trap
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 31 Jan 2011 21:40:55 +0000 (13:40 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 31 Jan 2011 21:40:55 +0000 (13:40 -0800)
commitbd52bedfc1ee463fcac536b3095817ff4400c191
treeac4f523afc23e42d6232b61a2ec41b6f33137cba
parent985b2cb052a8dcc949a48c55a078b49991492709
kernel64 - Fix disabled interrupts during dbg/bpt trap

* Interrupts were left improperly disabled during a dbg or bpt trap.
  i386 enables interrupts for these traps.  x86-64 needs to as well
  or it will hit an assertion in lwkt_switch() under certain circumstances.

* Make debug code in lwkt_switch() also require INVARIANTS to function.

  NOTE: This is temporary debug code and should be removed at some point
  after 48-core testing is complete.
sys/kern/lwkt_thread.c
sys/platform/pc64/x86_64/exception.S