kernel - Fix cpu lockup on resume after entering the debugger
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 May 2015 05:52:05 +0000 (22:52 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 May 2015 05:52:05 +0000 (22:52 -0700)
commitb19f40a4c77b7d620eaf0c3a0a46fa52c71f80ad
treee45e9d69ab716699ecd59924df41c9f402fd9a79
parent0cc33e2078eccfc7519b47867fe52a04f8861dbc
kernel - Fix cpu lockup on resume after entering the debugger

* Xcpustop was not testing ipending on resume.  Since Xcpustop STIs
  it is possible for it to receive further interrupts while stopped
  which can cause ipending to be set.

* Use doreti instead of doreti_iret.   doreti will test ipending,
  fpending, the per-cpu flags.

* Change the semantics to work more similarly to normal interrupt vectors.

* Note that dumping is still problematic.
sys/kern/lwkt_thread.c
sys/platform/pc64/apic/apic_vector.s