Implemented PIT

This commit is contained in:
2025-04-28 18:48:40 +02:00
parent bbb3c131b3
commit b8fba03773
7 changed files with 94 additions and 14 deletions
+7 -2
View File
@@ -2,6 +2,7 @@
#include <kernel.h>
#include <paging.h>
#include <serial.h>
#include <timer.h>
#include <gdt.h>
#include <isr.h>
#include <pmm.h>
@@ -29,13 +30,17 @@ void kmain(void* ptr, uint32_t magic) {
if (tty_init() != 0) panic("Failed to initalize TTY driver.");
tty_puts("kern.\n\n");
// TODO: Timer
// TODO: Scheduler
// Timer
if (timer_init() != 0) panic("Failed to initialize timer.");
// TODO: Syscalls
// TODO: Scheduler
// TODO: Interprocess communication
// TODO: Tasking
// TODO: Load & run /sbin/init
while (1);
panic("kmain() reached end.");
}