aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/cpu.c')
-rw-r--r--kernel/drivers/cpu.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/kernel/drivers/cpu.c b/kernel/drivers/cpu.c
index 44091a3..93c2cf3 100644
--- a/kernel/drivers/cpu.c
+++ b/kernel/drivers/cpu.c
@@ -156,6 +156,9 @@ CLEAR void cpu_enable_features(void)
cpu_extended_information = cpuid(0x80000001);
cpu_extended_features = cpuid(0x7);
+ // Enable NMI
+ outb(0x70, inb(0x70) & 0x7F);
+
// Enable SSE
if (cpu_features.edx & CPUID_FEAT_EDX_SSE) {
__asm__ volatile("clts");
@@ -201,11 +204,11 @@ CLEAR void cpu_enable_features(void)
}
// Enable UMIP // TODO: QEMU support?!
- if (cpu_extended_features.ecx & CPUID_EXT_FEAT_ECX_UMIP) {
- cr4_set(cr4_get() | 0x800);
- } else {
- print("No UMIP support :(\n");
- }
+ /* if (cpu_extended_features.ecx & CPUID_EXT_FEAT_ECX_UMIP) { */
+ /* cr4_set(cr4_get() | 0x800); */
+ /* } else { */
+ /* print("No UMIP support :(\n"); */
+ /* } */
}
/**