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:
jhb 2005-11-16 20:29:29 +00:00
parent bc23ec6b6f
commit 83cd89c741
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}