]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:52 +0000 (08:00 +0200)
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 */