From: Wolfgang Denk Date: Wed, 30 Apr 2008 17:38:30 +0200 Subject: [U-Boot-Users] cfi_flash.c and lost volatile qualifier In-Reply-To: Your message of "Wed, 30 Apr 2008 10:43:16 EDT." <48188584.3060109@ge.com> Message-ID: <20080430153830.3CC7024681@gemini.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 In message <48188584.3060109@ge.com> you wrote: > > The solution in the PowerPC world is to add a "eieio" or "sync" > instruction[1] appropriately[2], which prevents the bus interface unit > from reordering the memory operations. No, the solution for ALL architectures is to use the appropriate accessor macros which take care of such things (and probably contain calls like sync or similar). 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: wd at denx.de Unix: Some say the learning curve is steep, but you only have to climb it once. - Karl Lehenbauer