summaryrefslogtreecommitdiff
path: root/stage3/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/main.c')
-rw-r--r--stage3/main.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/stage3/main.c b/stage3/main.c
index a7212b9..a03dc5d 100644
--- a/stage3/main.c
+++ b/stage3/main.c
@@ -125,18 +125,6 @@ void kmain()
print_num_pad(features, 2, 32, '0');
print(S("\n"));
- // enable SSE. long mode demands it is present
- u64 cr0;
- asm volatile("mov %%cr0, %0 \n":"=r"(cr0));
- asm volatile("mov %0, %%cr0"::"r"((cr0 & ~(1 << 2)) | (1 << 1)));
-
- u64 cr4;
- asm volatile("mov %%cr4, %0":"=r"(cr4));
- asm volatile("mov %0, %%cr4"::"r"(cr4 | (1 << 9) | (1 << 10)));
-
- u16 fpu_cw = 0x37a;
- asm volatile("fldcw %0"::"m"(fpu_cw));
-
interrupts_init();
pic_init();
thread_init();