#pragma once #include "types.h" void setup_gdt(); /* types yay */ typedef struct GDTEntry { u16 limit_low; u16 base_low; u8 base_middle; u8 access; u8 granularity; u8 base_high; } __attribute__((packed)) GDTEntry; typedef struct GDTPtr { u16 limit; u32 base; } __attribute__((packed)) GDTPtr;