[ECOS] while(1) in PacketRxReady

Srinivas Surabhi srinivas.surabhi@wipro.com
Wed Oct 2 23:13:00 GMT 2002



 Hi All,
 
 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 operation.
 
 ..for easy reference, below given is 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/20021002/33ffe073/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT796850.txt
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20021002/33ffe073/attachment-0001.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