From: Ondrej Kupka Date: Fri, 30 Sep 2011 10:05:11 +0000 (+1100) Subject: x86: turn off cache: set control register properly X-Git-Tag: v2011.12-rc1~334^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b3d5380eea55f5b2e21c592b256b7077698f766;p=u-boot x86: turn off cache: set control register properly Bits should be ORed when they are supposed to be added together Signed-off-by: Ondrej Kupka --- diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S index 3d3017a0eb..9dabff2b9f 100644 --- a/arch/x86/cpu/start16.S +++ b/arch/x86/cpu/start16.S @@ -50,7 +50,7 @@ board_init16_ret: /* Turn of cache (this might require a 486-class CPU) */ movl %cr0, %eax - orl $(X86_CR0_NW & X86_CR0_CD), %eax + orl $(X86_CR0_NW | X86_CR0_CD), %eax movl %eax, %cr0 wbinvd