Interrupt Descriptor Table: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
new section, |
|||
Line 264: | Line 264: | ||
<source lang="c"> |
<source lang="c"> |
||
void loadidt(void* base) { |
void loadidt(void* base) { |
||
uint16_t size = 0x00FF; // Always needed |
uint16_t size = 0x00FF; // Always needed, our IDT is always 256 bytes long |
||
lidt((void*)base, size); // Load the IDT |
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> |
</source><source lang="c">void* base</source> |
||
Line 271: | Line 271: | ||
<source lang="c">loadidt(0xFC0000);</source> |
<source lang="c">loadidt(0xFC0000);</source> |
||
==See Also== |
==See Also== |