Configure the IVT to use in protected mode!!

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
User avatar
mahmoudaladawi
Posts: 13
Joined: Wed Jul 21, 2010 8:31 pm
Location: Egypt.
Contact:

Configure the IVT to use in protected mode!!

Post by mahmoudaladawi »

Hi all,
I want to know why don't we use the IVT segment:offset data in the table of extended bios interrupts to build interrupt descriptors that call the same routine in protected mode???
i.e calling bios functions by descriptors instead of vector table??
Is this possible??

Thanks for help in advance.
Mahmoud Eladawi
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Configure the IVT to use in protected mode!!

Post by bluemoon »

The intel manual says you need IDT, not IVT, for protected mode, therefore we don't use IVT.
Read chapter 6 of IA-3A.
i.e calling bios functions by descriptors instead of vector table??
You need to do it v86 mode or temporary switch back to real mode, as BIOS routine assumes real mode addressing.
But then, if you have your own drivers you probably enjoy to operate under protected mode than real/v86 mode.
User avatar
mahmoudaladawi
Posts: 13
Joined: Wed Jul 21, 2010 8:31 pm
Location: Egypt.
Contact:

Re: Configure the IVT to use in protected mode!!

Post by mahmoudaladawi »

Sufficient answer. Thank you
Mahmoud Eladawi
Post Reply