Hello,
I am currently working on an APIC driver. I was wondering if you needed a Local APIC driver in order to use the IO APIC
Thanks,
nexos
Does IOAPIC require LAPIC
Re: Does IOAPIC require LAPIC
Well, you need to enable LAPIC. And you need to signal EOI to it. If that amounts to a driver to you, then yes, you need a LAPIC driver to use IOAPIC.
Carpe diem!
Re: Does IOAPIC require LAPIC
Is this a strange question to ask for the following reason: the LAPIC is relatively simple to drive and offers many useful features (such as the most accurate timers that the architecture has to offer, access to the performance monitoring IRQ, multiprocessor support and the ability to send IPIs/NMIs). If it is available, you want to enable it even on systems where you use the old XT-PIC to handle hardware IRQs (which is perfectly possible).
Correctly handling the I/O APIC requires an ACPI implementation, however. There are chipsets - including most (?) Intel chipsets younger than 10 years - where the I/O APIC simply will not receive all interrupts (not even all non-PCI interrupts) when the _PIC AML method has not been called.
Correctly handling the I/O APIC requires an ACPI implementation, however. There are chipsets - including most (?) Intel chipsets younger than 10 years - where the I/O APIC simply will not receive all interrupts (not even all non-PCI interrupts) when the _PIC AML method has not been called.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].