2019-04-03 21:46:58 +00:00
|
|
|
|
2019-04-01 11:21:00 +00:00
|
|
|
//#include <stdio.h>
|
|
|
|
|
2019-04-06 19:00:11 +00:00
|
|
|
#include <kernel/tty.h>
|
2019-04-07 14:34:15 +00:00
|
|
|
#include <kernel/gdt.h>
|
|
|
|
#include <kernel/serial.h>
|
2019-04-01 01:18:48 +00:00
|
|
|
|
2019-04-07 14:34:15 +00:00
|
|
|
int kernel_main(void) {
|
|
|
|
// Prepare the screen, and blank it out.
|
|
|
|
screen_initialize();
|
|
|
|
|
|
|
|
// Prepare the serial console.
|
|
|
|
init_serial();
|
|
|
|
serial_print(0x3F8, "[INFO] Serial ready.");
|
|
|
|
// Prepare the GDT
|
|
|
|
//gdt_install();
|
|
|
|
// Prepare interrupts
|
2019-04-07 12:16:53 +00:00
|
|
|
//idt_install();
|
2019-04-01 01:18:48 +00:00
|
|
|
|
|
|
|
//Print a copyright message.
|
2019-04-01 11:46:40 +00:00
|
|
|
term_writes("(c)");
|
2019-04-01 11:21:00 +00:00
|
|
|
term_setcolor(GREEN);
|
2019-04-01 11:46:40 +00:00
|
|
|
term_writes(" Project");
|
2019-04-01 11:21:00 +00:00
|
|
|
term_setcolor(RED);
|
2019-04-01 11:46:40 +00:00
|
|
|
term_writes("RED");
|
2019-04-01 11:21:00 +00:00
|
|
|
term_setcolor(WHITE);
|
2019-04-01 11:46:40 +00:00
|
|
|
term_writes(", 2019\n");
|
2019-04-01 01:18:48 +00:00
|
|
|
|
|
|
|
for(;;) {}
|
|
|
|
return 0;
|
2019-04-03 21:46:58 +00:00
|
|
|
}
|