Subject: Re: port-mac68k/2568: kernel hangs if mouse moves during adb probe
To: None <bsalai@law.roc.servtech.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-bugs
Date: 06/25/1996 08:10:17
On Tue, 25 Jun 1996 07:41:42 -0400 (EDT) 
 Brad Salai <bsalai@law.roc.servtech.com> wrote:

 > >Description:
 > 	Kernel hangs during start up if mouse is moved.
 > >How-To-Repeat:
 > 	This is repeatable.
 > >Fix:
 > 	Don't move the mouse.

Actually, this probably happens because it looks like interrupts are 
enabled with the system is booting.  Look at this snippet of locore.s:

/* final setup for C code */
        jbsr    _setmachdep             | Set some machine-dep stuff
        movw    #PSL_LOWIPL,sr          | lower SPL ; enable interrupts

the movw should probably go away, and n "spl0();" placed right after the 
call to configure() in cpu_startup().

The same bug causes a panic on the hp300 if using a serial console with 
software flow control enabled; the interrupt handlers haven't been 
installed yet... Unfortunately, fixing it correctly on the hp300 is going 
to require some changes tot he HIL driver.  Hopefully, the mac68k port 
doesn't rely on interrupts being there during autoconfiguration.

Ciao.

 -- save the ancient forests - http://www.bayarea.net/~thorpej/forest/ -- 
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939