summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2010-11-19 11:19:40 -0500
committerSandeep Paulraj <s-paulraj@ti.com>2010-11-19 16:27:41 -0500
commit93e3568bd569ce4c079a84e20ea08da99ce83470 (patch)
treee400786cbe8848bbfbdc560968422e96d52dee0e /arch
parenteb9a28f699667919bf140bdabdf37c25be725c79 (diff)
downloadu-boot-imx-93e3568bd569ce4c079a84e20ea08da99ce83470.zip
u-boot-imx-93e3568bd569ce4c079a84e20ea08da99ce83470.tar.gz
u-boot-imx-93e3568bd569ce4c079a84e20ea08da99ce83470.tar.bz2
omap4: board: change global data pointer to file scope
DECLARE_GLOBAL_DATA_PTR is currently defined within the scope of function while it is a global pointer. Change the scope of definition to replicate it's global scope. This seems to help gcc 4.5 optimizations as well. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/omap4/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap4/board.c b/arch/arm/cpu/armv7/omap4/board.c
index e7651d2..fcd29a7 100644
--- a/arch/arm/cpu/armv7/omap4/board.c
+++ b/arch/arm/cpu/armv7/omap4/board.c
@@ -32,6 +32,8 @@
#include <asm/arch/sys_proto.h>
#include <asm/sizes.h>
+DECLARE_GLOBAL_DATA_PTR;
+
/*
* Routine: s_init
* Description: Does early system init of muxing and clocks.
@@ -100,7 +102,6 @@ u32 sdram_size(void)
*/
int dram_init(void)
{
- DECLARE_GLOBAL_DATA_PTR;
gd->ram_size = sdram_size();