Add: GDT, entry initializing for code and data segments

This commit is contained in:
xamidev
2024-07-14 10:22:42 +02:00
parent 2b05b8b74f
commit 007018790a
9 changed files with 80 additions and 2 deletions

View File

@@ -1,14 +1,19 @@
#include "stdio.h"
#include "serial.h"
#include "gdt.h"
int kmain(int retvalue)
{
gdt_install();
// serial testing
init_serial();
log("serial connection established", 3);
log("Kernel started", 2);
log("initialized GDT entries", 2);
log("kernel started", 2);
clear();