|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for managing IRQ handlers More...
Functions | |
| static int | irq_set_handler (irq_t code, irq_hdl_t hnd, void *data) |
| Set or remove an IRQ handler. | |
| static irq_cb_t | irq_get_handler (irq_t code) |
| Get the address of the current handler for the IRQ type. | |
| static int | irq_set_global_handler (irq_hdl_t hnd, void *data) |
| Set a global exception handler. | |
| static irq_cb_t | irq_get_global_handler (void) |
| Get the global exception handler. | |
API for managing IRQ handlers
This API provides a series of methods for registering and retrieving different types of exception handlers.
|
inlinestatic |
Get the global exception handler.
Get the address of the current handler for the IRQ type.
| code | The IRQ type to look up. |
|
inlinestatic |
Set a global exception handler.
This function sets a global catch-all filter for all exception types.
| hnd | A pointer to the procedure to handle the exception. |
| data | A pointer that will be passed along to the callback. |
| 0 | On success (no error conditions defined). |
Set or remove an IRQ handler.
Passing a NULL value for hnd will remove the current handler, if any.
| code | The IRQ type to set the handler for (see irq_t). |
| hnd | A pointer to a procedure to handle the exception. |
| data | A pointer that will be passed along to the callback. |
| 0 | On success. |
| -1 | If the code is invalid. |