#interrupt #x86 #handler #set #irq

nightly no-std x86_interrupts

A Simple x86 Interrupt Library

4 releases (1 stable)

1.0.1-rc.1 Aug 3, 2021
0.1.1-rc.1 Aug 3, 2021
0.1.0 Aug 3, 2021

#51 in #interrupt

Custom license

7KB
134 lines

x86 UART Serial Logger


Examples

use x86_interrupts as interrupts;

pub fn main() {
    interrupts::initialize().expect("Failed To Init Interrupts");
    interrupts::set_irq_handler(1, on_keypress); // IRQ #1: PS2 Keyboard.
}

pub fn on_keypress() {
    println!("Key Pressed!");
}

Dependencies

~740KB
~13K SLoC