[ECOS] RE : [ECOS] possible fix for eth_drv_recv blocking DSR
Andrew Lunn
andrew@lunn.ch
Wed Jun 29 11:13:00 GMT 2005
On Wed, Jun 29, 2005 at 12:46:43PM +0200, Arnaud Chataignier wrote:
> James,
>
> As you had no answer and I know it, I will try to help.
>
> There should be no DSR in an Ethernet driver device. Your ISR should
> only ask for a DSR call. The DSR is handled in the IO ethernet part, not
> in the device driver.
>
> The IO ethernet DSR only triggers the execution of the Network alarm
> thread, which then calls your ethernet driver 'deliver' function. Your
> deliver function is thus called from a thread, and there is no interrupt
> lock/unlock to be done in cyg_splx and spl_any.
I think the problem stems from a conflict in the documentation.
packages/io/eth/current/doc/driver_doc says you should be doing it
from the DSR. The sgml documentation says something different and
describes what you say.
The sgml documentation is correct. I will remove the driver_doc which
is now old and wrong.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list