projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da3a95d
)
x86: Use CR0 constants in CPU init
author
Simon Glass
<sjg@chromium.org>
Fri, 31 Jul 2015 15:31:26 +0000
(09:31 -0600)
committer
Simon Glass
<sjg@chromium.org>
Wed, 5 Aug 2015 14:42:40 +0000
(08:42 -0600)
We should use these constants where possible.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/cpu.c
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/cpu.c
b/arch/x86/cpu/cpu.c
index b9134cfef3747602ea8cee9cc4964afae8511abd..d233a459289140adc561d259117e8afad1d4ddbb 100644
(file)
--- a/
arch/x86/cpu/cpu.c
+++ b/
arch/x86/cpu/cpu.c
@@
-456,7
+456,7
@@
void x86_full_reset(void)
int dcache_status(void)
{
- return !(read_cr0() &
0x40000000
);
+ return !(read_cr0() &
X86_CR0_CD
);
}
/* Define these functions to allow ehch-hcd to function */