[U-Boot] [PATCH] arm926ejs: timer: Replace bss variable by gdr

Stefano Babic sbabic at denx.de
Mon Dec 13 08:29:57 CET 2010


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 <hs at denx.de>
> cc: Albert ARIBAUD <albert.aribaud at free.fr>
> cc: Prafulla Wadaskar <prafulla at marvell.com>
> cc: Stefano Babic <sbabic at denx.de>
> cc: Reinhard Meyer <u-boot at emk-elektronik.de>
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>

Acked-by: Stefano Babic <sbabic at denx.de>

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
=====================================================================


More information about the U-Boot mailing list