37 lines
960 B
C
37 lines
960 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>
|
|
|
|
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
|
|
|
|
|
|
/**
|
|
* The computer is now hanging on INTERRUPT 32,
|
|
* this is good because that means the PIC is working, its the timer interrupt
|
|
* we need to now implement the ISR routines in exception_handler,
|
|
* first i want to implement all of the code for the basic exceptions..
|
|
* then i want to setup the PIC triggers
|
|
*
|
|
* now for keyboard stuff, i believe i need to start looking into setting up a ps/2 driver before the interrupts will even start arriving..
|
|
*
|
|
*/
|
|
}
|