MOS Source Code
Loading...
Searching...
No Matches
interrupt.h File Reference
#include <mos/types.h>
+ Include dependency graph for interrupt.h:
+ This graph shows which files directly or indirectly include this file:

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.
 

Typedef Documentation

◆ irq_serve_t

typedef bool(* irq_serve_t) (u32 irq, void *data)

Function pointer type for interrupt handlers.

Returns
true if the interrupt was handled, false otherwise, in which case the interrupt will be passed to the next handler

Definition at line 11 of file interrupt.h.

Function Documentation

◆ interrupt_entry()

void interrupt_entry ( u32 irq)

Definition at line 24 of file interrupt.c.

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 38 of file interrupt.c.

Referenced by platform_startup_late().

+ Here is the call graph for this function: