Interrupt Descriptor Table: Difference between revisions

[unchecked revision][unchecked revision]
(new section,)
Line 264:
<source lang="c">
void loadidt(void* base) {
uint16_t size = 0x00FF; // Always needed;, our IDT is always 256 bytes long
lidt((void*)base, size); // Load the IDT, this assumes you have the lidt(); function from Inline Assembly/Examples.
}
</source><source lang="c">void* base</source>
Line 271:
 
<source lang="c">loadidt(0xFC0000);</source>
 
 
==See Also==
Anonymous user