summaryrefslogtreecommitdiff
path: root/arch/x86/lib/relocate.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-04-17 16:13:33 +0000
committerSimon Glass <sjg@chromium.org>2013-05-13 13:33:20 -0700
commit7282d834cd47cabc481a5cbe6e686ef40751436f (patch)
tree6f707a89d27ea9b012817931d68de8ad1624f777 /arch/x86/lib/relocate.c
parentfa790fa0a91b9d029ec6fdac791066bc5d16b862 (diff)
downloadu-boot-imx-7282d834cd47cabc481a5cbe6e686ef40751436f.zip
u-boot-imx-7282d834cd47cabc481a5cbe6e686ef40751436f.tar.gz
u-boot-imx-7282d834cd47cabc481a5cbe6e686ef40751436f.tar.bz2
x86: Declare global_data pointer when it is used
Several files use the global_data pointer without declaring it. This works because the declaration is currently a NOP. But still it is better to fix this so that x86 lines up with other archs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/relocate.c')
-rw-r--r--arch/x86/lib/relocate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c
index f178db9..21982db 100644
--- a/arch/x86/lib/relocate.c
+++ b/arch/x86/lib/relocate.c
@@ -39,6 +39,8 @@
#include <asm/sections.h>
#include <elf.h>
+DECLARE_GLOBAL_DATA_PTR;
+
int copy_uboot_to_ram(void)
{
size_t len = (size_t)&__data_end - (size_t)&__text_start;