global load_gdt ; lgdt can only be used from assembly so here we are extern GDT_PTR load_gdt: lgdt [eax] ret