Warner Losh 98dfb6b77e Store the mutex in the correct location. Before, we were storing it
in the pcb at the td_lock offset, rather than in the struct thread at
the td_lock offset.  And we were storing a pointer to the old thread
rather than to the mutex.  Why this didn't always kill us, I'll never
know.

Fix an obsolete comment and update the prototype in the comments.
Also note what variables are in what registers since this function is
a little complex...

neel@ found this problem and proposed this fix.  This cures a number
of different problem reports out there, and gets us booting octeon to
the login prompt...

Submitted by:	neel@
Reviewed by:	rrs@, gonzo@
2010-01-25 19:01:38 +00:00
..
2010-01-21 21:31:39 +00:00
2010-01-24 10:50:20 +00:00
2010-01-25 17:00:21 +00:00
2010-01-06 05:58:07 +00:00
2010-01-24 10:22:39 +00:00
2009-11-29 20:47:43 +00:00
2010-01-23 22:11:18 +00:00
2009-11-12 00:36:22 +00:00
2010-01-25 16:09:50 +00:00