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]

RE: eCos for MPC55xx


Oh I forgot
This has to be added to the ecos.db
package CYGPKG_GOAHEAD {
        alias           { "GoAhead WebServer" goahead }
        directory       services/goahead
        script          goahead.cdl
        description "This package includes the goahead WebServer."
}      

-----Original Message-----
From: ecos-patches-owner@ecos.sourceware.org [mailto:ecos-patches-owner@ecos.sourceware.org] On Behalf Of Gerster Jochen-B01096
Sent: Donnerstag, 20. Juli 2006 10:37
To: ecos-patches@ecos.sourceware.org
Subject: RE: eCos for MPC55xx

 

>>Gerster Jochen-B01096 wrote:
>> 
>> 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.

>Jonathan Larmour wrote:
>
>If it did not work for unaligned accesses on PowerPC in general, then this would have been discovered years ago.
>
>Perhaps have the semantics of an opcode in the MPC55xx changed so that 
>something that used to work for all PowerPC now only works on aligned addresses? If so that wouldn't be good, but it's not beyond the realms of possibility.

The opcode which generates the unaligned access is a simple lwz r28, 0xE(r30) (which load the ipaddr out of the ip header) = memcpy(x,x,4) And when now r30 + 0xE is unaligned the mpc5553/mpc5554 generates a exception(accessing the EBI)! Only the new Tiger mpc5567 supports unaligned 32bit access on the EBI And the problem is solved using gcc parameter -mstrict-align then the compiler splitt it up

Here is the services folder including
- the changed cpuload.cxx with correct average calculation
- And the new package for the goahead webserver. The sourcecode has to be downloaded from goahead
  and has to be unpacked directly in the src subdirectory (I used GoAhead WebServer 2.1.8 src) http://216.211.138.77/webserver/secure/webserver2.htm?redirect=I+ACCEPT


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