MADT: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
Remove unreadable example code |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1:
{{ACPI}}
The '''Multiple APIC Description Table''' ('''MADT''') is an [[ACPI]] table which provides informations necessary for operation on systems with [[APIC]], [[SAPIC]], [[GIC]], or [[LPIC]] implementations. As of June 17th, 2023, its latest definition is provided in the [[ACPI]] Specification Version 6.5, section [https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#multiple-apic-description-table-madt 5.2.12. ''Multiple APIC Description Table (MADT)''].
==Introduction==
The MADT describes all of the interrupt controllers in the system. It can be used to enumerate the processors currently available.
Line 45 ⟶ 47:
|}
If bit
After the Flags field, starting at offset 0x2C, the rest of the MADT table contains a sequence of variable length records which enumerate the interrupt devices on this machine. Each record begins with the following header fields.
Line 61 ⟶ 63:
Based on the Entry Type field value, the rest of the record layout can be determined.
== Entry Type 0
This type represents a single
{| {{wikitable}}
Line 79 ⟶ 81:
If flags bit 0 is set the CPU is able to be enabled, if it is not set you need to check bit 1. If that one is set you can still enable it, if it is not the CPU can not be enabled and the OS should not try.
== Entry Type 1
This type represents a I/O APIC. The global system interrupt base is the first interrupt number that this I/O APIC handles. You can see how many interrupts it handles using the register by getting the number of redirection entries from register 0x01, as described in [[APIC#IO_APIC_Registers|IO APIC Registers]].
Line 97 ⟶ 99:
|}
== Entry Type 2
This entry type contains the data for an Interrupt Source Override.
Line 117 ⟶ 119:
|}
== Entry type 3
Specifies which
{| {{wikitable}}
Line 135 ⟶ 137:
|}
== Entry Type 4
Configure these with the LINT0 and LINT1 entries in the Local vector table of the relevant processor(')s(') local APIC.
Line 151 ⟶ 153:
|}
== Entry Type 5
Provides 64 bit systems with an override of the physical address of the Local APIC. There can only be one of these defined in the MADT. If this structure is defined, the 64-bit Local APIC address stored within it should be used instead of the 32-bit Local APIC address stored in the MADT header.
Line 165 ⟶ 167:
|}
▲== Entry Type 9 : Processor Local x2APIC ==
Represents a physical processor and its Local x2APIC. Identical to Local APIC; used only when that struct would not be able to hold the required values.
Line 188 ⟶ 189:
Here is a diagram of the interrupt types:
[[File:Edge_vs_level.png]]
==See also==
|