![]() |
MOS Source Code
|
#include <mos/types.hpp>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.hpp.
Definition at line 21 of file interrupt.cpp.
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 35 of file interrupt.cpp.
Referenced by platform_startup_late().