freebsd-dev/sys/mips
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
..
adm5120 - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
alchemy - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
atheros - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
cavium o Write the soft reset bit in the cavium core to reset. [1] 2010-01-24 18:05:38 +00:00
compile
conf Fix device name for root.... 2010-01-25 16:55:31 +00:00
idt - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
include - Introduce kernel_kseg0_end variable that marks first address in KSEG0 2010-01-24 03:10:48 +00:00
malta - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
mips Store the mutex in the correct location. Before, we were storing it 2010-01-25 19:01:38 +00:00
rmi Changes the order of the setting the int happened (inside 2010-01-24 01:06:02 +00:00
sentry5 - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00
sibyte - Call post-boot fixup function in order to get proper static 2010-01-25 00:44:05 +00:00