summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-10-07 19:04:00 +0300
committerJoursoir <chat@joursoir.net>2022-10-13 18:58:06 +0300
commit16a538de1a643af7cb45133d1eb5fd28e58d25d1 (patch)
tree2d354ef4706528eb6e087fac5d659b7070740848 /kernel
parentc4f8edeb0845e73a15baa513ade27df08db90248 (diff)
downloadmfsos-16a538de1a643af7cb45133d1eb5fd28e58d25d1.tar.gz
mfsos-16a538de1a643af7cb45133d1eb5fd28e58d25d1.tar.bz2
mfsos-16a538de1a643af7cb45133d1eb5fd28e58d25d1.zip
x86: add GDT code to the kernel
Diffstat (limited to 'kernel')
-rw-r--r--kernel/main.c3
1 files changed, 3 insertions, 0 deletions
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();