Trait axhal::trap::TrapHandler

source ·
pub trait TrapHandler {
    // Required methods
    fn handle_irq(irq_num: usize);
    fn handle_syscall(id: usize, params: [usize; 6]) -> isize;
}
Expand description

Trap handler interface.

This trait is defined with the #[def_interface] attribute. Users should implement it with #[impl_interface] in any other crate.

Required Methods§

source

fn handle_irq(irq_num: usize)

Handles interrupt requests for the given IRQ number.

source

fn handle_syscall(id: usize, params: [usize; 6]) -> isize

Available on crate feature user only.

Handles syscalls

Implementors§