summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-10-04 23:08:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-10-04 23:08:23 +0000
commitc565514e46f87c8b10b7e70b0f15c737ce41a766 (patch)
tree2c6b0d81f40ae325d7a6bb63ea15f7fdad95bae1 /sys/arch/i386/stand/libsa
parentc75ec4539f2dfd487492b728d6405a775a201f09 (diff)
The wrong byte of the return code was being looked at for the
PCI probe. Yuichiro Goto, PR 5048 It would be nice if someone with a "pci0 at mainbus0 bus 0: configuration 2" system would double check this and mail us back. ok toby
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/pciprobe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/pciprobe.c b/sys/arch/i386/stand/libsa/pciprobe.c
index 4b7634ffa9b..15c25c5c0e8 100644
--- a/sys/arch/i386/stand/libsa/pciprobe.c
+++ b/sys/arch/i386/stand/libsa/pciprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciprobe.c,v 1.8 2004/03/09 19:12:13 tom Exp $ */
+/* $OpenBSD: pciprobe.c,v 1.9 2008/10/04 23:08:22 deraadt Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -48,7 +48,7 @@ pciprobe(void)
: "0" (0xB101), "4" (0x0)
: "cc");
- if (rc & 0xff00 || hw_chars & 0xff00)
+ if (rc & 0xff || hw_chars & 0xff00)
return;
if (sig != PCI_SIG)
return;