From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 13 Dec 2010 08:29:57 +0100 Subject: [U-Boot] [PATCH] arm926ejs: timer: Replace bss variable by gdr In-Reply-To: <1291973587-6718-1-git-send-email-hs@denx.de> References: <1291973587-6718-1-git-send-email-hs@denx.de> Message-ID: <4D05CB75.9040703@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 12/10/2010 10:33 AM, Heiko Schocher wrote: > Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss > values in the arm926ejs timers implementation. > > The usage of bss values in drivers before initialisation of bss is forbidden. > In that special case some data in .rel.dyn gets corrupted. > > This patch is similiar to the patch Dirk Behme posted > for the armv7/omap-common/timer.c and added suggestions > from Reinhard Meyer. > > Tested on the arm926ejs mx27 based magnesium board > Tested on the arm926ejs kirkwood based suen3 board > > Signed-off-by: Heiko Schocher > cc: Albert ARIBAUD > cc: Prafulla Wadaskar > cc: Stefano Babic > cc: Reinhard Meyer > > Signed-off-by: Heiko Schocher Acked-by: Stefano Babic Best regards, Stefano Babic -- ===================================================================== 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 =====================================================================