]> git.sur5r.net Git - u-boot/commit
arm920t/at91/timer: replace bss variables by gd
authorAndreas Bießmann <andreas.devel@googlemail.com>
Tue, 30 Nov 2010 09:45:06 +0000 (09:45 +0000)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 7 Dec 2010 21:08:07 +0000 (22:08 +0100)
commita429db7e3ce6136f80f22584588247926ba60b05
tree77fdba6216ccf719b632b6aab0f3bb62701ac12c
parent305bf489d1e7dd70f45720720ae0066fcce3acb1
arm920t/at91/timer: replace bss variables by gd

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc
bss values in arm920t/at91/timer driver.
The usage of bss values in driver before initialisation of bss is
forbidden. In that special case some data in .rel.dyn gets corrupted by
the arm920t/at91/timer driver.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
arch/arm/cpu/arm920t/at91/timer.c
arch/arm/include/asm/global_data.h
include/configs/at91rm9200ek.h