mutex_d again

Daniel Eischen eischen at vigrid.com
Fri Aug 8 13:20:12 PDT 2003


On Fri, 8 Aug 2003, Daniel Eischen wrote:

> On Fri, 8 Aug 2003, Daniel Eischen wrote:
> 
> > On Fri, 8 Aug 2003, Daniel Eischen wrote:
> > 
> > > It seems mutex_d is failing again in the priority inheritence tests.
> > > I'll try it on my system at work just to make sure it's not my kernel
> > > (newly built) at home that is screwing me somehow.
> > 
> > It seems to be working here at work on a 3-day old
> > kernel.  I am updating the kernel right now to see
> > if it works with a new kernel.
> 
> Yes, it now fails on a new kernel cvsup'd from 2 hours
> ago.  Something in the kernel is busted, and within
> the last 2 or 3 days.

Nevermind, found it.

-- 
Dan Eischen

Index: kern/kern_thread.c
===================================================================
RCS file: /opt/FreeBSD/cvs/src/sys/kern/kern_thread.c,v
retrieving revision 1.156
diff -u -r1.156 kern_thread.c
--- kern/kern_thread.c	7 Aug 2003 15:04:26 -0000	1.156
+++ kern/kern_thread.c	8 Aug 2003 20:02:32 -0000
@@ -1601,7 +1601,7 @@
 		} else {
 			if (td->td_standin == NULL)
 				thread_alloc_spare(td, NULL);
-			tflags = fuword32(tmbx);
+			tflags = fuword32(&tmbx->tm_flags);
 			/*
 			 * On some architectures, TP register points to thread
 			 * mailbox but not points to kse mailbox, and userland 




More information about the freebsd-threads mailing list