Renaming/Moving stuff into a different file structure

This commit is contained in:
2021-11-16 13:57:15 +01:00
parent 32909aaed9
commit 3a87b74224
28 changed files with 66 additions and 62 deletions

22
src/kernel/gdt/gdtc.h Normal file
View File

@ -0,0 +1,22 @@
#include <stdint.h>
extern "C"{
typedef struct {
uint16_t lLimit;
uint16_t lBase;
uint8_t mBase;
uint8_t access;
uint8_t granularity;
uint8_t hBase;
} gdtEntry_t;
struct gdtSegmentPointer {
uint16_t limit;
uint32_t base;
};
extern gdtSegmentPointer gdtPointer;
extern void load_gdt();
void setupGdt();
}