From: Simon Glass Date: Fri, 31 Jul 2015 15:31:26 +0000 (-0600) Subject: x86: Use CR0 constants in CPU init X-Git-Tag: v2015.10-rc2~410^2~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b6c9a205569964c7adbc8ab9470567c7e2436e0f;p=oweals%2Fu-boot.git x86: Use CR0 constants in CPU init We should use these constants where possible. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index b9134cfef3..d233a45928 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 */