24 lines
420 B
C
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
|
|
}
|