This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: eCos CVS <--> eCos 1.3.1 differences in net/eth_drv.
- To: Ivan Jakab <ivan at INTESIS dot hr>
- Subject: RE: [ECOS] eCos CVS <--> eCos 1.3.1 differences in net/eth_drv.
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Tue, 08 May 2001 08:38:40 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
On 08-May-2001 Ivan Jakab wrote:
> Hi,
>
> I'm currently moving support for a MIPS R3041 based board from the eCos
> 1.3.1 tree to the current CVS tree. When building the eCos CVS tests I got
> messages that claimed undefined reference for eth_drv_init(), eth_drv_recv()
> and eth_drv_tx_done() in packages\io\serial\current\src\common\serial.c:xxx.
> When comparing the eth_drv.c, where those functions are defined, from the
> 1.3.1 and the CVS eCos I noticed that in the CVS they're defined as static.
> I changed their definition not be static (as they were in the 1.3.1 tree)
> and all the tests passed without any "undefined reference" messages. Why was
> the definition of those functions changed to be static? Am I missing
> something here?
These interfaces have now changed and must only be accessed via the function
tables (pointers). Look at some of the other drivers for examples.