Implement SSE instructions

This commit is contained in:
2026-03-07 17:36:09 +01:00
parent 40bfc1e916
commit 5e616c1879
16 changed files with 80 additions and 15 deletions

12
kernel/amd64/sse.S Normal file
View File

@@ -0,0 +1,12 @@
.global sse_enable
sse_enable:
movq %cr0, %rax
andq $~0x4, %rax
orq $0x2, %rax
movq %rax, %cr0
movq %cr4, %rax
orq $(1 << 9) | (1 << 10), %rax
movq %rax, %cr4
ret