Page 1 of 1

does IDT use virtual addresses or physical ?

Posted: Thu Oct 17, 2019 9:51 am
by 0xCC
i have enabled paging in the higher half of the virtual address but when any interrupt rise, the OS crashes.
my first assumption was that IDT uses physicals address(including address of IDT passed to LIDT), is that right? is it the only thing in CPU that uses physical address after enabling paging ?(I know GDT does)
thank you.

Re: does IDT use virtual addresses or physical ?

Posted: Thu Oct 17, 2019 11:32 am
by nullplan
Both the IDT pointer and the offsets in the interrupt gate descriptors refer to virtual addresses.

Re: does IDT use virtual addresses or physical ?

Posted: Thu Oct 17, 2019 6:09 pm
by 0xCC
nullplan wrote:Both the IDT pointer and the offsets in the interrupt gate descriptors refer to virtual addresses.
thank you.
GDT uses virtual address too right?

Re: does IDT use virtual addresses or physical ?

Posted: Thu Oct 17, 2019 11:05 pm
by alexfru
0xCC wrote:GDT uses virtual address too right?
Yes, virtual/linear.