Commit b7c23627 by malcolm

added gdt and ldt init to main

parent 8ca1326f
Showing with 4 additions and 0 deletions
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#include "serial.h" #include "serial.h"
#include "term.h" #include "term.h"
#include "mem.h" #include "mem.h"
#include "gdt.h"
#include "idt.h"
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" /* Use C linkage for kernel_main. */ extern "C" /* Use C linkage for kernel_main. */
...@@ -13,6 +15,8 @@ void kernel_main() { ...@@ -13,6 +15,8 @@ void kernel_main() {
/* Initialize terminal and serial interfaces */ /* Initialize terminal and serial interfaces */
terminal_initialize(); terminal_initialize();
serial_init(); serial_init();
gdt_init();
idt_init(0x0);
/* Since there is no support for newlines in terminal_putchar /* Since there is no support for newlines in terminal_putchar
* yet, '\n' will produce some VGA specific character instead. * yet, '\n' will produce some VGA specific character instead.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment