This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001668] Fix: phy_read() function returns bad values if interrupt occurs


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001668

Bernd Edlinger <bernd.edlinger@hotmail.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernd.edlinger@hotmail.de

--- Comment #1 from Bernd Edlinger <bernd.edlinger@hotmail.de> 2012-09-09 10:37:09 BST ---
Well, when I look at that code I wonder
if this can really happen. The reason for this is:

phy_read() and phy_write() are static functions
which are only called from fec_eth_init().

And as far as I know the fec_eth_deliver should never
be called within fec_eth_init(), even if Interrupts
are enabled. The dsr function eth_drv_dsr() should only
trigger the execution of fec_eth_deliver() in the
ethernet handler thread, but threading is not enabled
when fec_eth_init() is called. Right?

Are you using FreeBSD or lwIP?

Are you able to reproduce this in a debugger?

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]