commit | cecf90e9845b3041683864a4cde11af82acf5c36 | [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 | 611f74998105857f338f611f616c9ff10ea1fa89 [diff] |
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 */