diff options
Diffstat (limited to 'include/garmos/arch.h')
-rw-r--r-- | include/garmos/arch.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/garmos/arch.h b/include/garmos/arch.h index 6d0f54d..ff1627e 100644 --- a/include/garmos/arch.h +++ b/include/garmos/arch.h @@ -44,4 +44,19 @@ struct gdtp { } __attribute__((packed)); void gdtset(struct gdtp gdtp); +/* interrupt description table initialization and activation */ +struct idtp { + uint16_t limit; + void *pointer; +} __attribute((packed)); +void idtset(struct idtp idtp); +void idtact(void); + +/* interrupt handler for ignores and a list of handlers to register */ +extern uint8_t irqnos[]; +extern uint32_t irqhdls[]; +void irqign(void); +void irqhdl0x00(void); +void irqhdl0x01(void); + #endif |