Files
novaos/kernel/kmain.c
Nathan Singer af92026a74 Okay wow i forgot to commit a bunch of stuff
I added some work on a keyboard driver here
also changed the emulation system, since bochs was giving me headaches when it came to keyboard input
added some todo stuff.. probably some cleanup, idk
2025-06-03 19:08:45 -04:00

38 lines
636 B
C

#include <stdio.h>
#include <stdint.h>
#include <kernel/_kernel.h>
#include <kernel/tty.h>
#include <kernel/serial.h>
#include <kernel/x86/gdt.h>
#include <kernel/x86/idt.h>
#include <kernel/x86/io.h>
#include <kernel/x86/keyb.h>
void kmain(void)
{
#ifdef __TESTING__ // important components should be declared first, but if we're testing we want to log all of that
terminal_initialize();
serial_initialize();
#endif
gdt_init();
idt_init();
#ifndef __TESTING__
terminal_initialize();
serial_initialize();
#endif
init_kb();
printf("Entering loop...\n");
while (1) {
continue;
}
printf("Exiting loop...\n");
}