summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-01-22 11:29:39 +0800
committerSimon Glass <sjg@chromium.org>2015-01-23 17:24:54 -0700
commit566d1754d3a84819d9e2829421898d115ef2c116 (patch)
treeffcfc936aefa9154bc992dd449d039a5cf9a050a /arch
parentd1a5d3c133a07d6035b9f97a6315afed7d73514a (diff)
downloadu-boot-imx-566d1754d3a84819d9e2829421898d115ef2c116.zip
u-boot-imx-566d1754d3a84819d9e2829421898d115ef2c116.tar.gz
u-boot-imx-566d1754d3a84819d9e2829421898d115ef2c116.tar.bz2
x86: Add missing DECLARE_GLOBAL_DATA_PTR for mtrr.c
arch/x86/cpu/mtrr.c has access to the U-Boot global data thus DECLARE_GLOBAL_DATA_PTR is needed. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/cpu/mtrr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/cpu/mtrr.c b/arch/x86/cpu/mtrr.c
index d5a825d..ac8765f 100644
--- a/arch/x86/cpu/mtrr.c
+++ b/arch/x86/cpu/mtrr.c
@@ -17,6 +17,8 @@
#include <asm/msr.h>
#include <asm/mtrr.h>
+DECLARE_GLOBAL_DATA_PTR;
+
/* Prepare to adjust MTRRs */
void mtrr_open(struct mtrr_state *state)
{