This is the mail archive of the ecos-discuss@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]

Re: bugs in AT91 Ethernet driver


> About a TX driver.
> At91sam9260 errata says, TX buffer and buffer descriptors must be 
> allocated in fast memory, e.g. internal SRAM.
> So, eCos scheme with TX buffers which dinamically allocated from the heap 
> (heap is in external SDRAM at 9260EK)
> is do not work in interrupt mode.

This will be because of the history of the driver. It was developed on
the AT91SAM7X which does not have an external bus. Everything is in
SRAM.

However, you are wrong about the TX buffers being on the heap. The
buffer is inside the at91_eth_priv_t structure. This is allocated at
the end of if_at91.c. It will be placed in the data segment. 

What is needed is some compiler/linker magic to put it into a
different segment which is placed in sram. This has been talked about
a few times on the mailling list.

  Andrew

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


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