OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Question about the FADT
PostPosted: Sat Mar 27, 2021 2:46 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
So ACPI now has the specification in HTML (yay!) and I was looking through it about the definition of the FADT. And it raised a few questions:
  1. Does the SCI interrupt get remapped when I remap it when initializing the APIC? For example, on QEMU the interrupt is 9, which is the coprocessor segment overrun exception. I assume it is but I thought I'd ask in case there's some ACPI weirdness going on.
  2. Is the SMI command port something I'd write with in/out instructions? And if so, what accesses would I make to that port (e.g.: byte, word, doubleword)?


Top
 Profile  
 
 Post subject: Re: Question about the FADT
PostPosted: Sat Mar 27, 2021 8:12 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
Ethin wrote:
Does the SCI interrupt get remapped when I remap it when initializing the APIC? For example, on QEMU the interrupt is 9, which is the coprocessor segment overrun exception. I assume it is but I thought I'd ask in case there's some ACPI weirdness going on.

Yes. When the hardware has dual 8259 PICs, SCI_INT tells you where the SCI is wired on those, and the MADT tells you if it's wired differently on the APIC. When the hardware doesn't have dual 8259 PICs, SCI_INT tells you the global system interrupt number, which is the same as the APIC input.

Don't confuse global interrupt numbers with CPU interrupt numbers. Interrupt controllers are used to map global interrupts to CPU interrupts, and they shouldn't be configured to use CPU interrupts that are reserved for exceptions.

Ethin wrote:
Is the SMI command port something I'd write with in/out instructions? And if so, what accesses would I make to that port (e.g.: byte, word, doubleword)?

Yes. Byte.


Top
 Profile  
 
 Post subject: Re: Question about the FADT
PostPosted: Sat Mar 27, 2021 9:11 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
Alright, thanks.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 78 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