[U-Boot] [PATCH v2 09/47] x86: Use CR0 constants in CPU init
Simon Glass
sjg at chromium.org
Fri Jul 31 17:31:26 CEST 2015
We should use these constants where possible.
Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
---
Changes in v2: None
arch/x86/cpu/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index b9134cf..d233a45 100644
--- 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 */
--
2.5.0.rc2.392.g76e840b
More information about the U-Boot
mailing list