One more patch for Alpha console issues...

Marcel Moolenaar marcel at xcllnt.net
Sun Feb 29 22:39:41 PST 2004


On Mon, Mar 01, 2004 at 02:57:46PM +1000, Peter Grehan wrote:
> > Any further thoughts?
> 
>  The problem is that make_dev() calls devlock(), which requires
> curthread to be valid to take out a mutex.
> 
>  The fix is to put the hand-crafting of proc0, thread0 and pcpu
> data and mutex_init to be *before* the call to cninit(). This
> is why i386 works.

Not really. The fix is to not call make_dev() at all this early.
You want to call cninit() as early as possible. Delaying cninit()
is a work-around for broken console devices.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net


More information about the freebsd-alpha mailing list