Re: Disable/Enable Interrupts in ISR

2003-04-05 Thread Andrew Gallatin
Bruce Evans writes: > > Is there an issue on non-x86 architectures? > > Not AFAIK. Not far, but SMP and FreeBSD's ithread implementation need > something like an x86 ICU to work right. The interrupt mask must be > global, and per-cpu ipls don't (naturally) work right even in the 1-cpu > c

Re: Disable/Enable Interrupts in ISR

2003-04-04 Thread Bruce Evans
On Fri, 4 Apr 2003, Prafulla Deuskar wrote: > All, > > foo_intr() > { > ... > disable_intr; > ... > process data; > ... > enable_intr; > } > > Most of the network drivers currently do something like this in the ISR. > Is this really necessary as by the time ISR is called interrupts have already be

Disable/Enable Interrupts in ISR

2003-04-04 Thread Prafulla Deuskar
All, foo_intr() { ... disable_intr; ... process data; ... enable_intr; } Most of the network drivers currently do something like this in the ISR. Is this really necessary as by the time ISR is called interrupts have already been disabled on APIC and disabling interrupts on network card has no eff