ArvernOS
|
#include <stdint.h>
Typedefs | |
typedef void(* | isr_handler_t) (isr_stack_t *stack) |
This type represents an interrupt handler. | |
Functions | |
void | isr_init () |
void | isr_enable_interrupts () |
void | isr_disable_interrupts () |
void | isr_register_handler (uint32_t id, isr_handler_t handler) |
isr_handler_t | isr_get_handler (uint32_t id) |
void isr_disable_interrupts | ( | ) |
Disables interrupts.
void isr_enable_interrupts | ( | ) |
Enables interrupts.
isr_handler_t isr_get_handler | ( | uint32_t | id | ) |
Returns the handler corresponding to the interrupt id passed as first argument.
id | an interrupt id |
0
void isr_init | ( | ) |
Initializes the Interrupt Service Routines (ISR).
void isr_register_handler | ( | uint32_t | id, |
isr_handler_t | handler ) |
Registers a handler for a given interrupt. It does not matter whether the interrupt is an exception, a hardware or software interrupt.
id | an interrupt id |
handler | the handler to attach to the interrupt |