jankos/kernel.c
2019-11-29 01:55:37 -08:00

22 lines
372 B
C

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