Why is the offset of IDT entry seperated in two pieces?

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
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

Why is the offset of IDT entry seperated in two pieces?

Post by Ycep »

Hi,
Now I'm doing IDT again, through it does not really matter anyway, why is the low 16-bit part of address offset put on the start of the gate entry and the high part on the end? It would make sense if it was used in real mode so it was just added later to support 32-bit addressing, but this is a newer feature.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Why is the offset of IDT entry seperated in two pieces?

Post by iansjack »

Address offsets on the 80286 protected mode were 16-bit, not 32-bit.

It was added later to support 32-bit addressing.
Post Reply