user program (still many #PF)

This commit is contained in:
2026-04-02 17:05:51 +02:00
parent 11a9dd4adb
commit aa30d9c6b5
11 changed files with 107 additions and 16 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ static void x86_enable_fpu()
__asm__ volatile("mov %%cr4, %0" : "=r"(cr4));
cr4 |= 0x200;
__asm__ volatile("mov %0, %%cr4" :: "r"(cr4));
uint16_t cw = 0x37F;
uint16_t cw = 0x37F; // control word
asm volatile("fldcw %0" :: "m"(cw));
}