When thread0 is initialized it must also be LWKT scheduled or LWKT will
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 2 May 2007 05:55:35 +0000 (05:55 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 2 May 2007 05:55:35 +0000 (05:55 +0000)
commit6b7dca13f11bbb8f799930f338098dc9d3d71408
treeea4094d1003fe02028a5aa91ddd3721e629d1711
parentb560de96bb86e3e72dfbac5e2990b88496dc3c95
When thread0 is initialized it must also be LWKT scheduled or LWKT will
forget it exists when you switch away without sleeping.  This fixes
a lockup with early uses of DRIVERSLEEP().

Reported-by: Sascha Wildner <saw@online.de>, YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/kern/init_main.c