MOS Source Code
Loading...
Searching...
No Matches
interrupt.cpp File Reference
+ Include dependency graph for interrupt.cpp:

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
 

Function Documentation

◆ interrupt_entry()

void interrupt_entry ( u32 irq)

Definition at line 21 of file interrupt.cpp.

Referenced by riscv64_trap_handler(), and x86_handle_irq().

◆ interrupt_handler_register()

void interrupt_handler_register ( u32 irq,
irq_serve_t handler,
void * data )

Register an interrupt handler.

Parameters
irqThe interrupt number
handlerThe handler function
dataData to pass to the handler

Definition at line 35 of file interrupt.cpp.

Referenced by platform_startup_late().

+ Here is the call graph for this function:

Variable Documentation

◆ irq_handlers_lock

spinlock_t irq_handlers_lock
static

Definition at line 18 of file interrupt.cpp.

Referenced by interrupt_handler_register().

◆ irq_handlers

list_head irq_handlers
static

Definition at line 19 of file interrupt.cpp.

Referenced by interrupt_entry(), and interrupt_handler_register().