From 64dc51ab2ebefeba3060e8dd0e851ebeb5c122b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Mon, 2 Sep 1996 21:33:41 +0000 Subject: [PATCH] Correct previous Orion specific fix: The configuration register access function always returns a DWORD aligned DWORD ... --- sys/pci/pcisupport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c index ea57e08e5ddf..061d95741df7 100644 --- a/sys/pci/pcisupport.c +++ b/sys/pci/pcisupport.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcisupport.c,v 1.33 1996/04/07 17:32:36 bde Exp $ +** $Id: pcisupport.c,v 1.34 1996/09/02 21:23:06 se Exp $ ** ** Device driver for DEC/INTEL PCI chipsets. ** @@ -807,7 +807,7 @@ extern unsigned pciroots; static void config_orion (pcici_t tag) { - if (pci_conf_read (tag, 0x4A) > 0) { + if (((pci_conf_read (tag, 0x48) >> 16) & 0xff) > 0) { pciroots++; } }