tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Interrupt handlers in NetBSD 5.0



On Tue, Jun 09, 2009 at 02:54:19PM +0200, Hans Petter Selasky wrote:
> On Tuesday 09 June 2009 14:25:26 Joerg Sonnenberger wrote:
> > On Tue, Jun 09, 2009 at 01:56:29PM +0200, Hans Petter Selasky wrote:
> > > Are you trying to explaing this is not possible?
> >
> > The interrupt is still masked when the handle is called. So if you want
> > to defer the actual work to a thread or so, you have to make sure that
> > the hardware is quiet (e.g. acknowledge the interrupt).
> 
> That's not possible. The hardware lacks the bits to disable the interrupt. 
> The 
> hardware will only clear the interrupt after reading FIFOs +++ and then I get 
> a sync problem about the shared softc structure.

What hardware? USB? As said already, in NetBSD you can use spinlocks
(with associated IPL mask) from the normal interrupt handler.

Joerg


Home | Main Index | Thread Index | Old Index