[ECOS] while(1) in PacketRxReady
Srinivas Surabhi
srinivas.surabhi@wipro.com
Wed Sep 25 04:43:00 GMT 2002
> Hi list,
>
> In PacketRxReady(struct i82559* p_i82559) of i82559.c
> the code says that the unless some thing appears on
> the Network card and the rxstatus bit get changed the
> control/execution will be in while(1).
>
> But to my surprise when i am debugging the code
> inside while(1) , i saw it is jumping out of it for some
> reasons even when the network connection was
> unpluged .Is it something that the timeout was
> set anywhere or else any seperate thread running for
> input packets processing and output packet processing.
>
> thanks in advance .
>
> Sorry for the trivial doubt but being new to RTOS concepts,
> i am eager to know the implementation . I also tried for
> the documentation of kernel implementation of the stack,
> but of no use.
>
> for reference, below given is some part of the code
> inside PacketRxReady(struct i82559* p_i82559)
>
> while ( 1 ) {
> cyg_uint32 rxstatus;
> cyg_uint16 rxstatus_hi;
> READMEM32(p_rfd + RFD_STATUS, rxstatus);
> if (0 == (rxstatus & RFD_STATUS_C))
> break;
> ..........
> }
>
> regards
srinivas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20020925/3651409d/attachment.txt>
-------------- next part --------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list