jankos/kernel.c
2019-12-05 02:16:56 -08:00

27 lines
447 B
C

#include "kernel.h"
#include "types.h"
#include "interrupts.h"
#include "gdt.h"
#include "pit.h"
#include "kbd.h"
#include "stlio.h"
#include "mem.h"
#include "tests.h"
#include "shell.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();
clear_fb();
jmain();
}