MX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
authorStefano Babic <sbabic@denx.de>
Fri, 21 Jan 2011 20:16:15 +0000 (21:16 +0100)
committerAlbert Aribaud <albert.aribaud@free.fr>
Tue, 1 Feb 2011 23:54:43 +0000 (00:54 +0100)
commitdb106ef7ebf671b9ae15cfacbccdd485437440b0
tree9c10e29967c56fb85c7859c6a056c647f3a73162
parenteae4988b45e17054f27d58b6fe0b42e080951382
MX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss

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 the same as recently applied for arm926js architecture.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
arch/arm/cpu/armv7/mx5/timer.c