aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel.cc')
-rw-r--r--src/kernel.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel.cc b/src/kernel.cc
index 0d8874c..3110419 100644
--- a/src/kernel.cc
+++ b/src/kernel.cc
@@ -11,6 +11,7 @@
#include <stdlib.h>
#include <types.h>
#include "cga.h"
+#include "cpu/cpu.h"
#include "gdt.h"
#include "idt.h"
#include "keyboard.h"
@@ -41,6 +42,11 @@ void kernel_main([[maybe_unused]] uint32_t mb_magic, [[maybe_unused]] uint32_t m
#endif
printk("Hello, kernel World!\n");
+ CPU core0;
+ printk("cpuid: ", core0.manufacturer(), " family ", core0.family(), " model ", core0.model(), " stepping ",
+ core0.stepping(), '\n');
+ runtime_assert(core0.features().fpu, "CPU lacks fpu");
+ runtime_assert(core0.features().cx8, "CPU lacks cx8");
dump_address();
// dump_gdt();