diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-01-22 11:29:39 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-23 17:24:54 -0700 |
commit | 566d1754d3a84819d9e2829421898d115ef2c116 (patch) | |
tree | ffcfc936aefa9154bc992dd449d039a5cf9a050a | |
parent | d1a5d3c133a07d6035b9f97a6315afed7d73514a (diff) | |
download | u-boot-566d1754d3a84819d9e2829421898d115ef2c116.tar.gz u-boot-566d1754d3a84819d9e2829421898d115ef2c116.tar.xz u-boot-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>
-rw-r--r-- | arch/x86/cpu/mtrr.c | 2 |
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) { |