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>
This commit is contained in:
Simon Glass 2015-07-31 09:31:26 -06:00
parent da3a95d60b
commit b6c9a20556
1 changed files with 1 additions and 1 deletions

View File

@ -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 */