Add a KASSERT() to assert that td_critnest is == 1 when mi_switch() is

called.
This commit is contained in:
John Baldwin 2002-07-17 02:46:13 +00:00
parent fe79953325
commit 627ed43ba7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100210

View file

@ -796,6 +796,8 @@ mi_switch()
td->td_state != TDS_RUNNING)
mtx_assert(&Giant, MA_NOTOWNED);
#endif
KASSERT(td->td_critnest == 1,
("mi_switch: switch in a critical section"));
/*
* Compute the amount of time during which the current