summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/32/boot.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/32/boot.s')
-rw-r--r--src/kernel/arch/amd64/32/boot.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/arch/amd64/32/boot.s b/src/kernel/arch/amd64/32/boot.s
index 0621038..b0808d3 100644
--- a/src/kernel/arch/amd64/32/boot.s
+++ b/src/kernel/arch/amd64/32/boot.s
@@ -17,7 +17,7 @@ _start:
jz panic_early
mov %cr4, %eax
- or $(1<<5), %eax // PAE
+ or $(1<<5 | 1<<9 | 1<<10), %eax // PAE | SSE | SSE
mov %eax, %cr4
call pml4_identity_init
@@ -30,7 +30,8 @@ _start:
wrmsr
mov %cr0, %eax
- or $0x80000000, %eax
+ or $0x80000002, %eax // enable paging, coprocessor monitoring
+ and $(~4), %eax // disable coprocessor emulation
mov %eax, %cr0
call gdt_init