On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass <s...@chromium.org> wrote:
> We should use these constants where possible.
>
> Signed-off-by: Simon Glass <s...@chromium.org>
> ---
>
>  arch/x86/cpu/cpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 @@ 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 */
> --

Reviewed-by: Bin Meng <bmeng...@gmail.com>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to