From: Wolfgang Denk Date: Wed, 12 Jan 2011 17:40:45 +0100 Subject: [U-Boot] [PATCH v4] ARM: Avoid compiler optimization for readb, writeb and friends. In-Reply-To: <4D2DCB18.20409@ahsoftware.de> References: <1293015862-3678-1-git-send-email-holler@ahsoftware.de> <1294611584-6098-1-git-send-email-wd@denx.de> <4D2DCB18.20409@ahsoftware.de> Message-ID: <20110112164045.526EACEFAB6@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 Dear Alexander Holler, In message <4D2DCB18.20409@ahsoftware.de> you wrote: > Am 09.01.2011 23:19, schrieb Wolfgang Denk: > > > gcc 4.5.1 seems to ignore (at least some) volatile definitions, > > avoid that as done in the kernel. > > Have had a look at the asm generated by gcc 4.5.1, looks good. > > The wrong optimization in arch/arm/cpu/armv7/omap3/clock.c is gone and > the writeb in drivers/mtd/nand/omap_gpmc.c doesn't have the problem as > the v1-patch. Thanks - but please send a formal Acked-by: and/or Tested-by: . 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 The universe does not have laws - it has habits, and habits can be broken.