summaryrefslogtreecommitdiffstats
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)
downloadblackbird-obmc-uboot-566d1754d3a84819d9e2829421898d115ef2c116.tar.gz
blackbird-obmc-uboot-566d1754d3a84819d9e2829421898d115ef2c116.zip
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 d5a825d181..ac8765f3cf 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)
{
OpenPOWER on IntegriCloud