Răsfoiți Sursa

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 <ondra.cap@gmail.com>
Ondrej Kupka 13 ani în urmă
părinte
comite
7b3d5380ee
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      arch/x86/cpu/start16.S

+ 1 - 1
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