diff options
author | 2000-09-20 19:39:55 +0000 | |
---|---|---|
committer | 2000-09-20 19:39:55 +0000 | |
commit | bd2a718e5641e14f4dd016cb3130fab92d21d54d (patch) | |
tree | c69a612da92e132eccf69c8b711d7bf3cdea2a0a | |
parent | Add IDENTITY payloads to flow establishment (and cleanup accordingly) (diff) | |
download | wireguard-openbsd-bd2a718e5641e14f4dd016cb3130fab92d21d54d.tar.xz wireguard-openbsd-bd2a718e5641e14f4dd016cb3130fab92d21d54d.zip |
check out the bios device name we are probed w/ to not probe on apm
-rw-r--r-- | sys/arch/i386/pci/pcibios.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pcibios.c b/sys/arch/i386/pci/pcibios.c index d5df6c265f5..9e06c998d28 100644 --- a/sys/arch/i386/pci/pcibios.c +++ b/sys/arch/i386/pci/pcibios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcibios.c,v 1.12 2000/09/07 20:50:39 mickey Exp $ */ +/* $OpenBSD: pcibios.c,v 1.13 2000/09/20 19:39:55 mickey Exp $ */ /* $NetBSD: pcibios.c,v 1.5 2000/08/01 05:23:59 uch Exp $ */ /* @@ -167,10 +167,12 @@ pcibiosprobe(parent, match, aux) struct device *parent; void *match, *aux; { + struct bios_attach_args *ba = aux; struct bios32_entry_info ei; u_int32_t rev_maj, rev_min, mech1, mech2, scmech1, scmech2, maxbus; - return (bios32_service(PCIBIOS_SIGNATURE, &pcibios_entry, &ei) && + return (!strcmp(ba->bios_dev, "pcibios") && + bios32_service(PCIBIOS_SIGNATURE, &pcibios_entry, &ei) && pcibios_get_status(NULL, &rev_maj, &rev_min, &mech1, &mech2, &scmech1, &scmech2, &maxbus) == PCIBIOS_SUCCESS); } |