Commit b6c9a205 authored by Simon Glass's avatar Simon Glass
Browse files

x86: Use CR0 constants in CPU init



We should use these constants where possible.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent da3a95d6
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment