72 #define DIVIDE_ERROR 0
74 #define NMI_INTERRUPT 2
77 #define BOUND_RANGE_EXCEED 5
78 #define INVALID_OPCODE 6
80 #define DOUBLE_FAULT 8
81 #define COPROC_SEG_OVERRUN 9
82 #define INVALID_TSS 10
83 #define SEGMENT_NOT_PRESENT 11
84 #define STACK_SEGMENT_FAULT 12
85 #define GENERAL_PROTECTION 13
88 #define FLOATING_POINT_ERR 16
89 #define ALIGNMENT_CHECK 17
90 #define MACHINE_CHECK 18
91 #define SIMD_FP_EXC 19
94 #define SECURITY_EXC 30
95 #define TRIPLE_FAULT 31
96 #define SYSTEM_CALL 80
int isr_install_handler(unsigned i, interrupt_handler_t handler, char *description)
Installs an ISR to handle an interrupt.
Definition: exception.c:96
int irq_uninstall_handler(unsigned i, interrupt_handler_t handler)
Uninstall an IRQ handler.
Definition: interrupt.c:87
void irq_init(void)
For each interrupt irq_init sets a default handler which prints the rose IRQ line and stops kernel ex...
Definition: interrupt.c:57
int irq_install_handler(unsigned i, interrupt_handler_t handler, char *description)
Installs an ISR to handle an interrupt.
Definition: interrupt.c:67
void isq_handler(pt_regs *f)
Method called by CPU to handle exceptions.
void(* interrupt_handler_t)(pt_regs *f)
Interrupt handler definition.
Definition: isr.h:20
void irq_handler(pt_regs *f)
Method called by CPU to handle interrupts.
Definition: interrupt.c:111
int isr_uninstall_handler(unsigned i)
Uninstall an ISR handler.
Definition: exception.c:107
void isrs_init(void)
For each exceptions isrs_init sets a default handler which prints the rose exceptions and stops kerne...
Definition: exception.c:88
Kernel generic data structure and functions.
Interrupt stack frame.
Definition: kernel.h:24