Started implementing the gdt_set_gate function