commit | b6c9a205569964c7adbc8ab9470567c7e2436e0f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Jul 31 09:31:26 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Aug 05 08:42:40 2015 -0600 |
tree | 11403da2054627a6778666583bc12b586d6065dd | |
parent | da3a95d60bb4476776126f453a0dc2c522d5d711 [diff] [blame] |
x86: Use CR0 constants in CPU init We should use these constants where possible. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
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 @@ int dcache_status(void) { - return !(read_cr0() & 0x40000000); + return !(read_cr0() & X86_CR0_CD); } /* Define these functions to allow ehch-hcd to function */