Anonymous user
User:Bellezzasolo/IDT problems: Difference between revisions
Added solution
m (In progress) |
(Added solution) |
||
Line 157:
</source>
Thakyou to [[User talk:Alfaomega08|Alfaomega08]] for helping me.
Here is the solution:
<source lang="cpp">
#pragma pack(push, 1)
class IDT_entry
{
// blah blah blah
};
#pragma pack(pop)
</source>
and
<source lang="cpp">
if(sizeof(IDT_reg) != 6)
{
Puts("Bad IDT reg\n");
Halt();
}
</source>
Where Halt is an infinite loop or a "cli; hlt" so that you can actually see the message being put.
== Related links ==
|