public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  i82559 driver sending dupliacte packet
       [not found] <Pine.LNX.4.33.0205221650480.18629-100000@zeenat.alumnus.co.in>
@ 2002-05-23  6:10 ` Arindam Chatterjee
  2002-05-31  4:43   ` Larice Robert
  0 siblings, 1 reply; 2+ messages in thread
From: Arindam Chatterjee @ 2002-05-23  6:10 UTC (permalink / raw)
  To: ecos-discuss



I am using eCos downloaded from CVS 8 months ago. while sending packet
using driver functions (if_i82559.c) same packet is going out twice. i
have made sure that my code is not sending twice. i am getting following
assertion fail from driver
CYG_ASSERT( rxstatus_hi & RFD_STATUS_HI_EL, "No prev EL" )
have anybody faced this kind of problem?? when can this happen ??
plz help me out.

TIA
arindam C



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS]  i82559 driver sending dupliacte packet
  2002-05-23  6:10 ` [ECOS] i82559 driver sending dupliacte packet Arindam Chatterjee
@ 2002-05-31  4:43   ` Larice Robert
  0 siblings, 0 replies; 2+ messages in thread
From: Larice Robert @ 2002-05-31  4:43 UTC (permalink / raw)
  To: Arindam Chatterjee; +Cc: ecos-discuss

> I am using eCos downloaded from CVS 8 months ago. while sending packet
> using driver functions (if_i82559.c) same packet is going out twice. i
> have made sure that my code is not sending twice. i am getting following
> assertion fail from driver
> CYG_ASSERT( rxstatus_hi & RFD_STATUS_HI_EL, "No prev EL" )
> have anybody faced this kind of problem?? when can this happen ??
> plz help me out.
> 
> TIA
> arindam C

I had the same problem. In my case follwing 2 in if_82559.c where responsible.
  Mask82559Interrupt()
  UnMask82259Interrupt()
I didn't have defined
  CYGPRI_DEVS_ETH_INTEL_I82559_MASK_INTERRUPTS
Mask82559 will then use cyg_drv_interrupt_mask().
  but  for my target (sh4), cyg_drv_interrupt_mask was a NOP for the
  IRQ pins i had used.
furthermore UnMask82559() should restore the irq state, but
  cyg_drv_interrupt_mask() will fail if nested calls occur.

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-31 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.33.0205221650480.18629-100000@zeenat.alumnus.co.in>
2002-05-23  6:10 ` [ECOS] i82559 driver sending dupliacte packet Arindam Chatterjee
2002-05-31  4:43   ` Larice Robert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).