Added the Global Descriptor Table.
This commit is contained in:
+8
-1
@@ -1,4 +1,5 @@
|
||||
#include "../includes/io.h"
|
||||
#include "../includes/gdt.h"
|
||||
#include "../includes/serial.h"
|
||||
#include "../includes/screen.h"
|
||||
|
||||
@@ -26,7 +27,7 @@ void kmain()
|
||||
move_cursor(5, 20);
|
||||
draw_string("Cursor moved over 5 cells and down 4 cells.", 0xF, 0x0);
|
||||
draw_string("And the cursor moves to the end of the string", 0x1, 0xF);
|
||||
draw_string("Now this string should have a newline now:\nAnd now a new line is here.", 0xF, 0x0);
|
||||
draw_string("Now this string should have a newline now:\nAnd now a new line is here.\n", 0xF, 0x0);
|
||||
//draw_rect(20, 5, 50, 7, 0x4, 0xF);
|
||||
//draw_rect(20, 5, 50, 7, 0x4, 0xF);
|
||||
//draw_rect(20, 5, 50, 7, 0x4, 0xF);
|
||||
@@ -34,5 +35,11 @@ void kmain()
|
||||
//row = 2;
|
||||
///column = 80;
|
||||
//draw_s("And 2nd Row. Now the 3rd row.", 2, 9);
|
||||
move_cursor(0, 3);
|
||||
draw_string("Installing GDT...\n", 0xF, 0x0);
|
||||
gdt_install();
|
||||
move_cursor(0, 4);
|
||||
draw_string("Installed GDT\n", 0xf, 0x0);
|
||||
|
||||
asm("hlt");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user