IOAPIC: Difference between revisions

m
no edit summary
[unchecked revision][unchecked revision]
m (1 revision imported: import new edits from osdev.org wiki)
mNo edit summary
 
Line 66:
The register IOREGSEL is an MMIO register select register that is used to access all the other I/O APIC registers. The IOWIN register is the 'data' register. Once the IOREGSEL register has been set, the IOWIN register can be used to write or read the register in the IOREGSEL. The actual position in memory of the two registers is specified in the ACPI MADT Table and/or in the MP table. The IOREGSEL is at the address specified, and IOREGWIN is at the same address + 0x10.
 
<sourcesyntaxhighlight lang="cpp">
 
#define IOAPICID 0x00
Line 249:
}
};
</syntaxhighlight>
</source>
'apic_base' is the memory base address for a selected IOAPIC, these can be found by enumerating them from the MP or ACPI Tables.