projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a5d3c
)
x86: Add missing DECLARE_GLOBAL_DATA_PTR for mtrr.c
author
Bin Meng
<bmeng.cn@gmail.com>
Thu, 22 Jan 2015 03:29:39 +0000
(11:29 +0800)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/mtrr.c
b/arch/x86/cpu/mtrr.c
index d5a825d1815edbee282d4b12a7c90b4dedc3c09c..ac8765f3cf2e17ece077f9463c9838c697793b9c 100644
(file)
--- 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)
{