gdt working
This commit is contained in:
@@ -5,6 +5,7 @@ extern "C" void __stack_chk_fail(void) {
|
||||
}
|
||||
|
||||
#include "kernelUtil.h"
|
||||
#include "gdt/gdt.h"
|
||||
|
||||
KernelInfo kernelInfo;
|
||||
PageTableManager pageTableManager = NULL;
|
||||
@@ -43,6 +44,11 @@ void PrepareMemory(BootInfo* bootInfo){
|
||||
|
||||
KernelInfo InitializeKernel(BootInfo* bootInfo){
|
||||
|
||||
GDTDescriptor gdtDescriptor;
|
||||
gdtDescriptor.Size = sizeof(GDT) - 1;
|
||||
gdtDescriptor.Offset = (uint64_t)&DefaultGDT;
|
||||
LoadGDT(&gdtDescriptor);
|
||||
|
||||
PrepareMemory(bootInfo);
|
||||
|
||||
memset(bootInfo->framebuffer->BaseAddress, 0, bootInfo->framebuffer->BufferSize);
|
||||
|
||||
Reference in New Issue
Block a user