I Can't Get Interrupts Working: Difference between revisions

[unchecked revision][unchecked revision]
Line 16:
'' see [[#Assembly_Examples|test code]] below ''
 
=== My Handler doesn't get called (C) !?! ===
 
If you're programming the IDT setup in C, make sure the IDTR structure has been correctly understood by your compiler. As Intel's 6 bytes structures infringe most compiler's packing rules, you'll need to use either ''bitfields'' or ''packing pragmas''. Use <tt>sizeof()</tt> and <tt>OFFSETOF()</tt> macros to make sure the expected definition is used (a runtime test would be fine)
 
 
=== My handler is called but it doesn't return !? ===
Anonymous user