Should I handle local interrupt pins?
Should I handle local interrupt pins?
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?
Skylight: https://github.com/austanss/skylight
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
Re: Should I handle local interrupt pins?
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.
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.
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].
Re: Should I handle local interrupt pins?
So don't configure the LINTs myself. Got it. Use the MADT and let the firmware do the rest.
Skylight: https://github.com/austanss/skylight
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
Re: Should I handle local interrupt pins?
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.
Carpe diem!