feat: gdt, attributes move, reorder

Added late gdt setup with initial tss
Moved attributes to include root
Reordered some imports
This commit is contained in:
2021-03-21 17:34:38 +01:00
parent 513693189e
commit 20ab9e1d6e
28 changed files with 351 additions and 121 deletions

View File

@@ -2,13 +2,13 @@
// Created by rick on 22-04-20.
//
#include <attributes.h>
#include <stdio.h>
#include <sys/types.h>
#include <myke/mem/pmm.h>
#include <myke/mem/mem.h>
#include <myke/libk/libk.h>
#include <myke/attributes.h>
#include <myke/mem/mem.h>
#include <myke/mem/pmm.h>
#define MEMMAP_ENTRIES 16
@@ -25,7 +25,7 @@ typedef struct {
uint32_t address;
uint32_t length;
uint32_t type;
} packed mmap_entry;
} att_packed mmap_entry;
int last_memmap_entry = 0;
mmap_entry memmap[MEMMAP_ENTRIES] = {