#include "./gdt.hpp" #include "types.hpp" namespace x86_64 { struct gdt_descriptor { u16 size; const void* offset; } PACKED; void gdt::load() { gdt_descriptor gdtr{ (sizeof(entries) - 1), entries }; asm volatile("lgdt %0" : : "m"(gdtr)); } } // namespace x86_64