Update all essential code to working state
This commit is contained in:
parent
15dc60aa12
commit
d845a64a4e
|
@ -2,7 +2,7 @@
|
||||||
//#include <stdio.h>
|
//#include <stdio.h>
|
||||||
|
|
||||||
#include <kernel/tty.h>
|
#include <kernel/tty.h>
|
||||||
#include <kernel/gdt.h>
|
#include <kernel/descriptor_tables.h>
|
||||||
#include <kernel/serial.h>
|
#include <kernel/serial.h>
|
||||||
|
|
||||||
int kernel_main(void) {
|
int kernel_main(void) {
|
||||||
|
@ -11,14 +11,15 @@ int kernel_main(void) {
|
||||||
|
|
||||||
// Prepare the serial console.
|
// Prepare the serial console.
|
||||||
init_serial();
|
init_serial();
|
||||||
serial_print(0x3F8, "[INFO] Serial ready.");
|
serial_print(0x3F8, "[INFO] Serial ready.\n");
|
||||||
|
|
||||||
// Prepare the GDT
|
// Prepare the GDT
|
||||||
serial_print(0x3F8, "[INFO] Beginning GDT subroutine.");
|
serial_print(0x3F8, "[INFO] Beginning GDT subroutine.\n");
|
||||||
gdt_install();
|
gdt_install();
|
||||||
|
|
||||||
// Prepare interrupts
|
// Prepare interrupts
|
||||||
//idt_install();
|
serial_print(0x3F8, "[INFO] Beginning IDT subroutine.\n");
|
||||||
|
idt_install();
|
||||||
|
|
||||||
//Print a copyright message.
|
//Print a copyright message.
|
||||||
term_writes("(c)");
|
term_writes("(c)");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user