summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-31 09:31:31 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:42:41 -0600
commit8b097916faa20f04ff4b0147ebcf0331204ec96b (patch)
treeea4ff098a55f25f620a3e3265637fc3ed3377a59 /arch/x86
parent0bc74ab3e694643cb070ed055964fa2a73d300af (diff)
downloadu-boot-imx-8b097916faa20f04ff4b0147ebcf0331204ec96b.zip
u-boot-imx-8b097916faa20f04ff4b0147ebcf0331204ec96b.tar.gz
u-boot-imx-8b097916faa20f04ff4b0147ebcf0331204ec96b.tar.bz2
x86: Add some missing global_data declarations in files that use gd
Some files use global_data but don't declare it. Fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/mp_init.c2
-rw-r--r--arch/x86/lib/bootm.c2
-rw-r--r--arch/x86/lib/fsp/fsp_common.c2
-rw-r--r--arch/x86/lib/lpc-uclass.c2
-rw-r--r--arch/x86/lib/pch-uclass.c2
5 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index e686b28..3294a50 100644
--- a/arch/x86/cpu/mp_init.c
+++ b/arch/x86/cpu/mp_init.c
@@ -24,6 +24,8 @@
#include <dm/uclass-internal.h>
#include <linux/linkage.h>
+DECLARE_GLOBAL_DATA_PTR;
+
/* Total CPUs include BSP */
static int num_cpus;
diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index 86030cf..445ee6e 100644
--- a/arch/x86/lib/bootm.c
+++ b/arch/x86/lib/bootm.c
@@ -22,6 +22,8 @@
#include <asm/arch/timestamp.h>
#endif
+DECLARE_GLOBAL_DATA_PTR;
+
#define COMMAND_LINE_OFFSET 0x9000
/*
diff --git a/arch/x86/lib/fsp/fsp_common.c b/arch/x86/lib/fsp/fsp_common.c
index 5b25632..c585710 100644
--- a/arch/x86/lib/fsp/fsp_common.c
+++ b/arch/x86/lib/fsp/fsp_common.c
@@ -11,6 +11,8 @@
#include <asm/processor.h>
#include <asm/fsp/fsp_support.h>
+DECLARE_GLOBAL_DATA_PTR;
+
int print_cpuinfo(void)
{
post_code(POST_CPU_INFO);
diff --git a/arch/x86/lib/lpc-uclass.c b/arch/x86/lib/lpc-uclass.c
index 6aeb4d4..c6e8f73 100644
--- a/arch/x86/lib/lpc-uclass.c
+++ b/arch/x86/lib/lpc-uclass.c
@@ -9,6 +9,8 @@
#include <dm.h>
#include <dm/root.h>
+DECLARE_GLOBAL_DATA_PTR;
+
static int lpc_uclass_post_bind(struct udevice *bus)
{
/*
diff --git a/arch/x86/lib/pch-uclass.c b/arch/x86/lib/pch-uclass.c
index d1082e1..20dfa81 100644
--- a/arch/x86/lib/pch-uclass.c
+++ b/arch/x86/lib/pch-uclass.c
@@ -9,6 +9,8 @@
#include <dm.h>
#include <dm/root.h>
+DECLARE_GLOBAL_DATA_PTR;
+
static int pch_uclass_post_bind(struct udevice *bus)
{
/*