Correct the tests for ISA PIC/APIC so that they actually work.
This commit is contained in:
parent
95e2a710ad
commit
6eb9d785ef
@ -576,10 +576,10 @@ pnpbios_identify(driver_t *driver, device_t parent)
|
||||
* available for general use.
|
||||
*/
|
||||
#ifdef APIC_IO
|
||||
if (pnp_eisaformat(pd->devid) == "PNP0000") /* ISA PIC */
|
||||
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0000")) /* ISA PIC */
|
||||
continue;
|
||||
#else
|
||||
if (pnp_eisaformat(pd->devid) == "PNP0003") /* APIC */
|
||||
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0003")) /* APIC */
|
||||
continue;
|
||||
#endif
|
||||
|
||||
|
@ -576,10 +576,10 @@ pnpbios_identify(driver_t *driver, device_t parent)
|
||||
* available for general use.
|
||||
*/
|
||||
#ifdef APIC_IO
|
||||
if (pnp_eisaformat(pd->devid) == "PNP0000") /* ISA PIC */
|
||||
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0000")) /* ISA PIC */
|
||||
continue;
|
||||
#else
|
||||
if (pnp_eisaformat(pd->devid) == "PNP0003") /* APIC */
|
||||
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0003")) /* APIC */
|
||||
continue;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user