summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-06-10 22:56:09 +0000
committermsmith <msmith@FreeBSD.org>2000-06-10 22:56:09 +0000
commitf156b85478cdb7960e69832d4f29c007dfbd7b8e (patch)
treedce24c3821e0e6ac40f8c17ba2c5a18c83ae188f
parentad6da2a572d407fcefb6e59135d685555e001b20 (diff)
downloadFreeBSD-src-f156b85478cdb7960e69832d4f29c007dfbd7b8e.zip
FreeBSD-src-f156b85478cdb7960e69832d4f29c007dfbd7b8e.tar.gz
Correct the tests for ISA PIC/APIC so that they actually work.
-rw-r--r--sys/amd64/amd64/bios.c4
-rw-r--r--sys/i386/i386/bios.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c
index 687a792..4935245 100644
--- a/sys/amd64/amd64/bios.c
+++ b/sys/amd64/amd64/bios.c
@@ -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
diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c
index 687a792..4935245 100644
--- a/sys/i386/i386/bios.c
+++ b/sys/i386/i386/bios.c
@@ -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
OpenPOWER on IntegriCloud