does IDT use virtual addresses or physical ?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
0xCC
Posts: 15
Joined: Sun Sep 09, 2018 2:07 am

does IDT use virtual addresses or physical ?

Post 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.
nullplan
Member
Member
Posts: 1798
Joined: Wed Aug 30, 2017 8:24 am

Re: does IDT use virtual addresses or physical ?

Post by nullplan »

Both the IDT pointer and the offsets in the interrupt gate descriptors refer to virtual addresses.
Carpe diem!
0xCC
Posts: 15
Joined: Sun Sep 09, 2018 2:07 am

Re: does IDT use virtual addresses or physical ?

Post 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?
alexfru
Member
Member
Posts: 1112
Joined: Tue Mar 04, 2014 5:27 am

Re: does IDT use virtual addresses or physical ?

Post by alexfru »

0xCC wrote:GDT uses virtual address too right?
Yes, virtual/linear.
Post Reply