kernel -- Spinlock debugging.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Sun, 26 Dec 2010 00:57:07 +0000 (16:57 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Sun, 26 Dec 2010 00:57:07 +0000 (16:57 -0800)
commit1a474e56c667c8f0289b935f5170c17ddebe3be5
tree17f6da8cf7fdbbf2a548ed8b563f2ec62d87b143
parent1a92ebbba565e9b19de3767cd55cf0d2f95c160a
kernel -- Spinlock debugging.

* Track spinlocks held by a thread in a per-thread array; records the lock
  address and the EIP of the lock-taker.

* Panic in lockmgr() if we hold any spinlocks when trying to take a sleeping
  lockmgr lock.
sys/kern/kern_lock.c
sys/sys/spinlock2.h
sys/sys/thread.h