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: off...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot