From 239ee0c0519d71b004906a31943bbf33d3c04091 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 27 Dec 2014 23:20:45 +0100 Subject: [PATCH] fix wrong initialization of CR4 --- arch/x86/kernel/entry.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/entry.asm b/arch/x86/kernel/entry.asm index 93e7d11..1901428 100644 --- a/arch/x86/kernel/entry.asm +++ b/arch/x86/kernel/entry.asm @@ -82,9 +82,9 @@ cpu_init: mov cr3, eax ; Set CR4 - mov cr4, eax - and eax, ~(1 << 9) ; disable SSE - or eax, (1 << 4) ; enable PSE + mov eax, cr4 + and eax, 0xfffbf9ff ; disable SSE + or eax, (1 << 4) ; enable PSE mov cr4, eax ; Set CR0