From c565514e46f87c8b10b7e70b0f15c737ce41a766 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 4 Oct 2008 23:08:23 +0000 Subject: 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 --- sys/arch/i386/stand/libsa/pciprobe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386/stand/libsa/pciprobe.c') 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; -- cgit v1.2.3