Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: new kernel resets system - "solution"
On Fri, Feb 05, 2010 at 11:06:09PM +0000, Quentin Garnier wrote:
> On Fri, Feb 05, 2010 at 10:36:07PM +0100, Kurt Schreiner wrote:
> > Hi,
> >
> > reverting
> >
> > sys/kern/kern_mutex.c
> > sys/kern/kern_rwlock.c
> > sys/sys/mutex.h
> > sys/sys/rwlock.h
> >
> > to yesterday's versions yields a working kernel again.
> > (at least on i386...)
>
> Would the following "fix" it by any chance?
>
> Index: kern_mutex.c
> ===================================================================
> RCS file: /cvsroot/src/sys/kern/kern_mutex.c,v
> retrieving revision 1.47
> diff -u -r1.47 kern_mutex.c
> --- kern_mutex.c 5 Feb 2010 06:43:16 -0000 1.47
> +++ kern_mutex.c 5 Feb 2010 23:03:58 -0000
> @@ -181,7 +181,8 @@
> (((mtx)->mtx_owner & MUTEX_BIT_SPIN) == 0)
>
> #define MUTEX_DEBUG_P(mtx) (((mtx)->mtx_owner & MUTEX_BIT_NODEBUG)
> == 0)
> -#if defined(LOCKDEBUG)
> +//#if defined(LOCKDEBUG)
> +#if 1
> #define MUTEX_OWNED(owner) (((owner) & ~MUTEX_BIT_NODEBUG)
> != 0)
> #define MUTEX_INHERITDEBUG(new, old) (new) |= (old) &
> MUTEX_BIT_NODEBUG
> #else /* defined(LOCKDEBUG) */
>
Yep, a new kernel w/ this "fix" is booting & running fine.
Kurt
Home |
Main Index |
Thread Index |
Old Index