jankos/kernel.c
2019-11-29 13:08:26 -08:00

24 lines
420 B
C

#include "kernel.h"
#include "types.h"
#include "tests.h"
#include "interrupts.h"
#include "pit.h"
#include "stlio.h"
#include "gdt.h"
#include "kbd.h"
void kinit() {
//gdt_configure();
init_idt();
pit_install_timer();
//kbd_install_keyboard();
test_dispatcher();
}
// Should kmain return, we fall back to the loader which then just keeps in a hung state
void kmain() {
kinit();
pit_timer_wait(50); // in ms
}