I Can't Get Interrupts Working: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
merging IDT problems |
m →Problems: correct spelling |
||
Line 132: | Line 132: | ||
First of all check your GDT. Keep in mind padding issues. In C this goes like: |
First of all check your GDT. Keep in mind padding issues. In C this goes like: |
||
<source lang="c"> |
<source lang="c"> |
||
pragma pack(push, 1) |
#pragma pack(push, 1) |
||
struct IDT_reg { |
struct IDT_reg { |
||
//struct here |
//struct here |
||
}; |
}; |
||
pragma |
#pragma pack(pop, 1) |
||
</source> |
</source> |
||