summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-31 18:31:26 +0300
committerSimon Glass <sjg@chromium.org>2015-08-05 17:42:40 +0300
commitb6c9a205569964c7adbc8ab9470567c7e2436e0f (patch)
tree11403da2054627a6778666583bc12b586d6065dd /arch/x86
parentda3a95d60bb4476776126f453a0dc2c522d5d711 (diff)
downloadu-boot-b6c9a205569964c7adbc8ab9470567c7e2436e0f.tar.xz
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
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 */