I was reading: https://www.aldeid.com/wiki/X86-assembly/Instructions/sidt
But have one question, where should I save?
I don't know if the memory in which I am going to save is empty to be used or that it's in range. So how should I choose that memory region?
Why?
I am writing my own function to store idt resister (of size 80 bits) and then another function to load it.
void my_store_idt(struct desc_ptr *idtr) {
asm ("SIDT "
);
}