![]() |
MOS Source Code
|
#include "mos/interrupt/interrupt.hpp"
#include "mos/lib/structures/list.hpp"
#include <mos/allocator.hpp>
#include <mos_stdlib.hpp>
Go to the source code of this file.
Classes | |
struct | interrupt_handler_t |
Functions | |
void | interrupt_entry (u32 irq) |
void | interrupt_handler_register (u32 irq, irq_serve_t handler, void *data) |
Register an interrupt handler. | |
Variables | |
static spinlock_t | irq_handlers_lock |
static list_head | irq_handlers |
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().
|
static |
Definition at line 18 of file interrupt.cpp.
Referenced by interrupt_handler_register().
|
static |
Definition at line 19 of file interrupt.cpp.
Referenced by interrupt_entry(), and interrupt_handler_register().