Date: Mon, 25 Jan 2010 19:01:38 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/mips/mips swtch.S Message-ID: <201001251901.o0PJ1jBx097556@repoman.freebsd.org>
index | next in thread | raw e-mail
imp 2010-01-25 19:01:38 UTC
FreeBSD src repository
Modified files:
sys/mips/mips swtch.S
Log:
SVN rev 202983 on 2010-01-25 19:01:38Z by imp
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@
Revision Changes Path
1.3 +5 -4 src/sys/mips/mips/swtch.S
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001251901.o0PJ1jBx097556>
