Fix a typo in the check for an invalid APIC. If we are told about an
I/O APIC that doesn't exist, then a read of the version register is going to return -1 which is 0xffffffff not 0xffffff. Tested on: i386 Tested by: Nikos Ntarmos ntarmos at ceid dot upatras dot gr MFC after: 1 week
This commit is contained in:
parent
bc23ec6b6f
commit
83cd89c741
@ -503,7 +503,7 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase)
|
||||
mtx_unlock_spin(&icu_lock);
|
||||
|
||||
/* If it's version register doesn't seem to work, punt. */
|
||||
if (value == 0xffffff) {
|
||||
if (value == 0xffffffff) {
|
||||
pmap_unmapdev((vm_offset_t)apic, IOAPIC_MEM_REGION);
|
||||
return (NULL);
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase)
|
||||
mtx_unlock_spin(&icu_lock);
|
||||
|
||||
/* If it's version register doesn't seem to work, punt. */
|
||||
if (value == 0xffffff) {
|
||||
if (value == 0xffffffff) {
|
||||
pmap_unmapdev((vm_offset_t)apic, IOAPIC_MEM_REGION);
|
||||
return (NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user