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]

FW: eCos for MPC55xx


Hi Andrew

Ok so lets start with the memcpy problem, while I take care of the Copyright assignment.
Perhaps a new thread?

The problem is:
The POWERPC gcc compiler (allocated from the ecos site)  optimize memcpy calls with small length, instead it uses its own inline function without taking care of aligned access. This is a very very big problem using the TCP/IP stack because the IP-address is 4byte so the gcc optimize and the offset of the IP-address in the different protocol-headers varies. This ends in a exception :(

So I asking me now:
 I'm the only one with this problem?
 How do you solve this problem, perhaps a compiler flag?

I solved this by renaming the ecos memcpy function to my_memcpy and define a macro in the string.h which link every memcpy to my_memcpy (#define memcpy my_memcpy). So the gcc don't touch this new function and .... No exceptions


Jochen

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: Mittwoch, 5. Juli 2006 18:42
To: Gerster Jochen-B01096
Subject: Re: eCos for MPC55xx

On Wed, Jul 05, 2006 at 09:12:07AM +0200, Gerster Jochen-B01096 wrote:
> 
> I can't belive it!! It works!?! :)
> 
> So any idea how to public the source files??
> The mailing list seems to dislike the attached zip file?

Hi Jochen

As suggested send it as a number of packages. When presented with a big patch i tend to put it to the bottom of the pile because i know it will need a lot of effort. Lots of small, independent patches get handled quicker.

We will need a copyright assignment. Please take a look on the eCos website for the document you need to find.

Lastly, im on holiday until the beginning of August, so i don't expect i will be able to take a look at this until then. Maybe one of the other maintainers will handle it before then.

      Andrew


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