jankos/kernel.c

22 lines
324 B
C

#include "kernel.h"
#include "types.h"
#include "tests.h"
#include "interrupts.h"
#include "stlio.h"
#include "gdt.h"
void kinit() {
//gdt_configure();
init_idt();
test_dispatcher();
}
void kmain() {
kinit();
__asm__("xchg bx, bx");
__asm__("xor eax, eax");
__asm__("div al");
for(;;); // the most amazing loop
}