fix: cringe gdt and and stack gdt

This commit is contained in:
2024-09-10 11:19:23 +02:00
parent 0787b1a1fc
commit 5fc5a3be0e
3 changed files with 40 additions and 23 deletions

View File

@ -2,6 +2,10 @@
#include <stdint.h>
#define GDT_BASE 0x00000800
// sizeof(Segment Descriptor) * nb(Segment Descriptor)
#define GDT_SIZE 8 * 7
struct gdt_entry {
uint32_t limit;
uint32_t base;