summaryrefslogtreecommitdiff
path: root/kernel/cpu/cpu.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-03 21:32:00 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-03 21:32:00 -0400
commit16b7b4c2c008c976ee5948c97a8337d6224c3be9 (patch)
tree70f8402c3a2650d72fb174a43f8893a6f415546b /kernel/cpu/cpu.c
parentfix printf (diff)
downloadcomus-16b7b4c2c008c976ee5948c97a8337d6224c3be9.tar.gz
comus-16b7b4c2c008c976ee5948c97a8337d6224c3be9.tar.bz2
comus-16b7b4c2c008c976ee5948c97a8337d6224c3be9.zip
add 64-bit idt/pic and fix paging
Diffstat (limited to 'kernel/cpu/cpu.c')
-rw-r--r--kernel/cpu/cpu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/cpu/cpu.c b/kernel/cpu/cpu.c
new file mode 100644
index 0000000..8f37402
--- /dev/null
+++ b/kernel/cpu/cpu.c
@@ -0,0 +1,10 @@
+
+#include "fpu.h"
+#include "pic.h"
+#include "idt.h"
+
+void cpu_init(void) {
+ pic_remap();
+ idt_init();
+ fpu_init();
+}