From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 10 Feb 2007 22:54:17 +0100 Subject: [U-Boot-Users] [PATCH0/2] Re-do the patch for adding DO_SYNC in flash_write_cmd In-Reply-To: Your message of "Sat, 10 Feb 2007 08:40:45 +0100." <200702100840.46587.sr@denx.de> Message-ID: <20070210215417.9843F352629@atlas.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 <200702100840.46587.sr@denx.de> you wrote: > > > > Or, to be sure, ""sync;isync" > > I would not do this. Please let a "sync" instruction _not_ do a "isync" too. > There will be times when you explicitly _don't_ what this. Note that the current assember #define SYNC does exactly what I quoted above... > Why not use > > #define sync() __asm__ __volatile__ ("sync" : : : "memory"); > > from include/asm-ppc/io.h? This seems to be exactly what we need. Indeed. Let's use that! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de One difference between a man and a machine is that a machine is quiet when well oiled.