Dear York, In message <f1d691e4-180a-4a2d-be07-812547d46...@freescale.com> you wrote: > > > On second thought, I also think we should avoid solutions where the > > BE/LE test has to be done for each and every I/O accessor call again > > and again. We should rather do this just once, and for example set > > function pointers as needed (hoping that this driver will only be > > needed after relocation, so we have writable data segment). > > I like the idea of setting it just once, but I don't see how to > implement it. A pointer is probably not the solution, because we do need > some drivers before relocation.
"some drivers before relocation" - how many which are these? Also, is it really necessary to make the decision about endianess at runtime? We don't have multi-board support in U-Boot yet, so when you build an image you know exactly which SoC you are building for, so you should be able to make the selection at compile time? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de To be is to program. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot