Page 1 of 1
Should I handle local interrupt pins?
Posted: Fri May 28, 2021 8:04 am
by austanss
Should I handle interrupts arising from the LINT0/LINT1 pins? Or should I (when not specified to set as NMI) just set them to external interrupt 0? Should I handle the spurious interrupt / local interrupt triggers? Do they ever arise at all?
Re: Should I handle local interrupt pins?
Posted: Fri May 28, 2021 8:17 am
by Korona
Do what the MADT demands and/or what the BIOS configured.
LINT0/LINT1 are usually used to (1) connect the legacy PIC to the local APIC via ExINT delivery mode, and to (2) route NMIs or SMIs to the local APIC.
Re: Should I handle local interrupt pins?
Posted: Fri May 28, 2021 8:22 am
by austanss
So don't configure the LINTs myself. Got it. Use the MADT and let the firmware do the rest.
Re: Should I handle local interrupt pins?
Posted: Fri May 28, 2021 1:15 pm
by nullplan
You can only handle an interrupt if you know what caused the interrupt. This is true for all interrupts, LAPIC or not. Therefore you can only handle LINT0 and LINT1 once you know what they mean.