Anonymous user
I Can't Get Interrupts Working: Difference between revisions
→Problems: Added GCC version and fixed/cleaned up pragmas for VC++
[unchecked revision] | [unchecked revision] |
(→Problems: code made more obvious) |
(→Problems: Added GCC version and fixed/cleaned up pragmas for VC++) |
||
Line 132:
First of all check your GDT. Keep in mind padding issues. In C this goes like:
<source lang="c">
// GCC
struct IDT_reg {
} __attributte__((packed));
struct GDT_reg {
} __attributte__((packed));
// Visual C++
#pragma pack(push, 1)
struct IDT_reg {
//struct here
};
struct GDT_reg {
//struct here
};
#pragma pack(pop
</source>
|