Moving components modules to a more proper directory

This commit is contained in:
2023-03-30 22:40:08 -07:00
parent 044d5a75b5
commit cc1bb63e27
26 changed files with 11 additions and 148 deletions

32
kernel/kernel.c Normal file
View File

@@ -0,0 +1,32 @@
#include "kernel.h"
#include "types.h"
#include "interrupts.h"
#include "gdt.h"
#include "pit.h"
#include "kbd.h"
#include "stlio.h"
#include "mem.h"
#ifdef TESTING
#include "tests.h"
#endif
#include "jank-shell/shell.h"
void kinit() {
//gdt_configure();
init_idt();
pit_install_timer();
kbd_install_keyboard();
#ifdef TESTING
test_dispatcher();
#endif
}
// Should kmain return, we fall back to the loader which then just keeps in a hung state
void kmain() {
kinit();
clear_fb();
jmain();
}

4
kernel/kernel.h Normal file
View File

@@ -0,0 +1,4 @@
#include "types.h"
void kinit();
void kmain();