]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Use CR0 constants in CPU init
authorSimon Glass <sjg@chromium.org>
Fri, 31 Jul 2015 15:31:26 +0000 (09:31 -0600)
committerSimon 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

index b9134cfef3747602ea8cee9cc4964afae8511abd..d233a459289140adc561d259117e8afad1d4ddbb 100644 (file)
@@ -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 */