From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 5 Jun 2009 05:21:24 +0200 Subject: [U-Boot] [PATCH 3/3] ARM: add unaligned macros In-Reply-To: <20090604192331.GO26688@buzzloop.caiaq.de> References: <1244111241-32735-1-git-send-email-daniel@caiaq.de> <20090604190347.5F003832E416@gemini.denx.de> <20090604192331.GO26688@buzzloop.caiaq.de> Message-ID: <200906050521.24522.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 =====================================================================