MOS Source Code
|
#include <mos/types.h>
Go to the source code of this file.
Typedefs | |
typedef bool(* | irq_serve_t) (u32 irq, void *data) |
Function pointer type for interrupt handlers. | |
Functions | |
void | interrupt_entry (u32 irq) |
void | interrupt_handler_register (u32 irq, irq_serve_t handler, void *data) |
Register an interrupt handler. | |
Function pointer type for interrupt handlers.
Definition at line 11 of file interrupt.h.
Definition at line 24 of file interrupt.c.
Referenced by riscv64_trap_handler(), and x86_handle_irq().
void interrupt_handler_register | ( | u32 | irq, |
irq_serve_t | handler, | ||
void * | data ) |
Register an interrupt handler.
irq | The interrupt number |
handler | The handler function |
data | Data to pass to the handler |
Definition at line 38 of file interrupt.c.
Referenced by platform_startup_late().