Fixed (was: Re: Kernel hanging after today cvsup at Timecounter "TSC)

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Wed, 23 May 2007 13:32:26 -0400 (EDT)
On Wed, 23 May 2007, Attilio Rao wrote:

>> I've uploaded the actual stack trace with arguments as
>>
>>   http://www.watson.org/~robert/freebsd/20070523-panic.png
>
> Ok, it seems that the new time_lock spinlock is initialized too late, and 
> infact cpu_initclocks() is called before it is initialized.
>
> It is enough to move the mtx_init() just before the cpu_initclocks() in 
> kern_clock.c::initclocks().
>
> Can someone try that and report if it works?
>
> I'm sorry for that, but I (and presumabily other people testing the patch) 
> never got that problems on all machines we used (probabilly beacause this is 
> just triggered when attaching vgaX).

I've made the change, sucessfully booted, and committed the fix as 
kern_clock.c:1.196.  Thanks!

Robert N M Watson
Computer Laboratory
University of Cambridge
5B
Received on Wed May 23 2007 - 15:32:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:10 UTC