summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2010-11-30 09:45:06 +0000
committerReinhard Meyer <u-boot@emk-elektronik.de>2010-12-07 22:08:07 +0100
commita429db7e3ce6136f80f22584588247926ba60b05 (patch)
tree77fdba6216ccf719b632b6aab0f3bb62701ac12c /arch/arm/include
parent305bf489d1e7dd70f45720720ae0066fcce3acb1 (diff)
downloadu-boot-imx-a429db7e3ce6136f80f22584588247926ba60b05.zip
u-boot-imx-a429db7e3ce6136f80f22584588247926ba60b05.tar.gz
u-boot-imx-a429db7e3ce6136f80f22584588247926ba60b05.tar.bz2
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
index ada3fbb..e459a5d 100644
--- a/arch/arm/include/asm/global_data.h
+++ b/arch/arm/include/asm/global_data.h
@@ -60,6 +60,7 @@ typedef struct global_data {
unsigned long tbl;
unsigned long tbu;
unsigned long long timer_reset_value;
+ unsigned long lastinc;
#endif
unsigned long relocaddr; /* Start address of U-Boot in RAM */
phys_size_t ram_size; /* RAM size */