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

Albert ARIBAUD albert.aribaud at free.fr
Fri Jan 21 18:37:26 CET 2011


Hi Heiko,

Le 21/01/2011 09:56, Heiko Schocher a écrit :
> 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>

Applied to u-boot-arm, thanks.

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list