Open Fidius-jko opened 8 months ago
You can check out https://github.com/kennystrawnmusic/cryptos or https://github.com/tsatke/devos if the documentation around https://docs.rs/x2apic/latest/x2apic doesn't suffice.
https://github.com/xuanplus/rust-os-dev/blob/main/kernel/src/apic/lapic.rs
It maybe helpful for you. But I don't know how to enable ioapic, I only enable Timer.
Here's an example (mentioned above by @tsatke as well) that makes use of the x2apic crate: https://github.com/kennystrawnmusic/cryptos/blob/master/src/drivers/apic_impl.rs
Where can i see APIC example? I use uefi in qemu and PIC doesn't work with qemu uefi.