]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
x86: Add missing DECLARE_GLOBAL_DATA_PTR for mtrr.c
authorBin Meng <bmeng.cn@gmail.com>
Thu, 22 Jan 2015 03:29:39 +0000 (11:29 +0800)
committerSimon Glass <sjg@chromium.org>
Sat, 24 Jan 2015 00:24:54 +0000 (17:24 -0700)
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>
arch/x86/cpu/mtrr.c

index d5a825d1815edbee282d4b12a7c90b4dedc3c09c..ac8765f3cf2e17ece077f9463c9838c697793b9c 100644 (file)
@@ -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)
 {