I have my idtr addressing defined as
gdt_pointer:
DW 0;size_of_gdt
DD 0;start_of_gdt
and I can load it with LGDT [gdt_pointer]
.
But how can I change the contents of gdt later if I have to?
Can I use the LGDT
instruction again after setting the proper values?
EDIT: I'm planning to keep my gdt_pointer start address same all the time, but I'll be changing the size parameter. Also I'm loading and changing the gdt from 32 bit protected mode.