diff options
Diffstat (limited to 'src/interrupts.h')
-rw-r--r-- | src/interrupts.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/interrupts.h b/src/interrupts.h index a2d261a..d8a6d4b 100644 --- a/src/interrupts.h +++ b/src/interrupts.h @@ -26,10 +26,6 @@ typedef struct interrupt_gate_descriptor_t { #define NOF_INTERRUPT_GATES 256 -typedef struct { - interrupt_gate_descriptor_t descriptor_table[NOF_INTERRUPT_GATES]; -} interrupt_t; - #if defined( __TINYC__ ) #pragma pack(1) #endif @@ -43,6 +39,11 @@ typedef struct { #pragma pack() #endif +typedef struct { + interrupt_descriptor_table_pointer_t idt_pointer; + interrupt_gate_descriptor_t descriptor_table[NOF_INTERRUPT_GATES]; +} interrupt_t; + void interrupts_enable( void ); void interrupts_disable( void ); void interrupts_init( interrupt_t *interrupt ); |