[U-Boot] [PATCH 3/3] ARM: add unaligned macros

Stefan Roese sr at denx.de
Fri Jun 5 05:21:24 CEST 2009


On Thursday 04 June 2009 21:23:31 Daniel Mack wrote:
> > Is there any guarantee that such macros are never used on device
> > registers and the like?
>
> Well - how can I guarantee that? Anyway - the functions can be enhanced
> later to make them work with different types of memories. For now, they
> implement a working set of functions to allow ubifs (and probably other
> code as well) to be compiled and ran on ARMs.

Yes. I suggest that we just document that these functions (and the 
set_bit()... ones) don't implement any memory barriers/sync operations and 
therefore should be handled with care when used on IO registers etc (on 
platforms that need such barriers like PPC).

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list