Skip to content

Commit

Permalink
ioapic: no id sanity check
Browse files Browse the repository at this point in the history
Remove the double check on a device's IOAPIC ID as it breaks
on systems where the ID returned by a device differs from
the one read at boot from the MADT tables

Signed-off-by: Daniele Ahmed <ahmeddan amazon c;0m >
  • Loading branch information
82marbag committed Jul 1, 2021
1 parent ae72fbf commit ae07d46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/x86/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ void __text_init init_ioapic(void) {

id.reg = ioapic_read32(ioapic, IOAPIC_ID);
if (ioapic->id != id.apic_id) {
panic("IOAPIC with unexpected APIC ID detected: 0x%02x (expected: "
"0x%02x)\n",
id.apic_id, ioapic->id);
printk("IOAPIC with unexpected APIC ID detected: 0x%02x (expected: "
"0x%02x)\n",
id.apic_id, ioapic->id);
}
ioapic->id = id.apic_id;

version.reg = ioapic_read32(ioapic, IOAPIC_VERSION);
ioapic->version = version.version;
Expand Down

0 comments on commit ae07d46

Please sign in to comment.