GDT Tutorial: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
slight cleanup |
mNo edit summary |
||
Line 57:
== Small Kernel Setup ==
If you want (for specific reason) to have code and data clearly separated (let's say 4 MiB for both, starting at 4 MiB
<source lang="c">
Line 199:
== What is the IDT and is it needed? ==
As said above, the IDT (Interrupt Descriptor Table) loads much the same way as the GDT and its structure is roughly the same except that it only contains gates and not segments. Each gate gives a full reference to a piece of code (code segment,
The IDT will be one of the first things to be enabled in your kernel sequence, so that you can catch hardware exceptions, listen to external events, etc. See [[Interrupts for dummies]] for more information about the interrupts of X86 family.
|