OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:53 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Should I handle local interrupt pins?
PostPosted: Fri May 28, 2021 8:04 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 11, 2020 9:46 pm
Posts: 363
Location: United States
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".


Top
 Profile  
 
 Post subject: Re: Should I handle local interrupt pins?
PostPosted: Fri May 28, 2021 8:17 am 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
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.

_________________
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].


Top
 Profile  
 
 Post subject: Re: Should I handle local interrupt pins?
PostPosted: Fri May 28, 2021 8:22 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 11, 2020 9:46 pm
Posts: 363
Location: United States
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".


Top
 Profile  
 
 Post subject: Re: Should I handle local interrupt pins?
PostPosted: Fri May 28, 2021 1:15 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], SemrushBot [Bot] and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group