From 16a538de1a643af7cb45133d1eb5fd28e58d25d1 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 7 Oct 2022 19:04:00 +0300 Subject: x86: add GDT code to the kernel --- kernel/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kernel') diff --git a/kernel/main.c b/kernel/main.c index 5e6491c..c7665a1 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -1,4 +1,5 @@ #include "video-vga.h" +#include "gdt.h" /* Check if the compiler thinks you are targeting the wrong operating system. */ #if defined(__linux__) @@ -10,6 +11,8 @@ #endif void kernel_main(void) { + init_segmentation(); + /* Initialize VGA video hardware */ vga_init(); -- cgit v1.2.3-18-g5258