diff --git a/Kernel/src/Tier0/kmain.c b/Kernel/src/Tier0/kmain.c index 1171e57..e726c0e 100644 --- a/Kernel/src/Tier0/kmain.c +++ b/Kernel/src/Tier0/kmain.c @@ -96,6 +96,17 @@ void kmain_newstack(void) exceptions_init_simple(); apic_enable_lapic(); heap_init_simple(); + + // enable FPU/SSE... + __asm__ volatile( + "movq %cr0, %rax;" + "and $0xfffb, %ax;" + "or $0x2, %rax;" + "movq %rax, %cr0;" + "movq %cr4, %rax;" + "or $0x600, %ax;" + "movq %rax, %cr4;"); + for (;;) {} /*pic_init(0, 0);