Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where can i see APIC example? #1290

Open
Fidius-jko opened this issue Feb 14, 2024 · 4 comments
Open

Where can i see APIC example? #1290

Fidius-jko opened this issue Feb 14, 2024 · 4 comments

Comments

@Fidius-jko
Copy link

Where can i see APIC example? I use uefi in qemu and PIC doesn't work with qemu uefi.

@tsatke
Copy link

tsatke commented Feb 14, 2024

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.

@xuanplus
Copy link

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.

@kennystrawnmusic
Copy link
Contributor

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

@ChocolateLoverRaj
Copy link

PIC doesn't work with qemu uefi.

For me the default 8259 PIC masks made it so that everything was off by default, but if I changed the masks then I could get timer, keyboard, and mouse interrupts on qemu UEFI too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants