kernel - Add TDF_RUNNING assertions
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 02:51:52 +0000 (18:51 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 02:51:52 +0000 (18:51 -0800)
commit121f93bc96d950e7ad625952a6de5b189863e3b7
tree5fae5de03635d963dde2db742368f8dfd5f01875
parenta471eac535f632f45345fec35628581b8931e2b1
kernel - Add TDF_RUNNING assertions

* Assert that the target lwkt thread being switched to is not flagged as
  running.

* Assert that the originating lwkt thread being switched from is flagged as
  running.

* Fix the running flag initial condition for the idle thread.
sys/kern/lwkt_thread.c
sys/platform/pc32/i386/swtch.s
sys/platform/pc64/x86_64/support.s
sys/platform/pc64/x86_64/swtch.s
sys/platform/vkernel/i386/swtch.s
sys/platform/vkernel64/x86_64/swtch.s