u-boot/arch
Heiko Schocher c9ac3ba129 arm926ejs: timer: Replace bss variable by gdr
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@denx.de>
cc: Albert ARIBAUD <albert.aribaud@free.fr>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Stefano Babic <sbabic@denx.de>
cc: Reinhard Meyer <u-boot@emk-elektronik.de>
2011-02-02 00:54:45 +01:00
..
arm arm926ejs: timer: Replace bss variable by gdr 2011-02-02 00:54:45 +01:00
avr32 Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
blackfin Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS 2011-01-25 22:22:30 +01:00
i386 Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS 2011-01-25 22:22:30 +01:00
m68k Replace "FLASH" strings with "Flash" or "flash" 2011-01-19 00:02:37 +01:00
microblaze Replace "FLASH" strings with "Flash" or "flash" 2011-01-19 00:02:37 +01:00
mips Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
nios2 Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS 2011-01-25 22:22:30 +01:00
powerpc Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS 2011-01-25 22:22:30 +01:00
sh Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS 2011-01-25 22:22:30 +01:00
sparc Replace "FLASH" strings with "Flash" or "flash" 2011-01-19 00:02:37 +01:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00