[Zion] Add task switching for SSE registers and enable them in userspace.

This commit is contained in:
Drew Galbraith 2023-11-21 15:50:31 -08:00
parent 2a984a93ec
commit 96063126cb
7 changed files with 43 additions and 5 deletions

View file

@ -17,6 +17,10 @@ void ProbeCpuAndEnableFeatures() {
panic("SSE3, SSSE3 not available.");
}
if (!(ecx & (0x3 << 19))) {
dbgln("SSE4 not available.");
}
dbgln("Setting SSE");
asm volatile(
"mov %%cr0, %%rax;"