cannot compile kernel.. PCIR_HEADERTYPE

ibotty bsd at ibotty.net
Tue Feb 24 05:42:53 PST 2004


> since at least some days, i cannot build a kernel w/o attached (trivial)
> patch

well, patch w/o patch is great, aint it.

~ibottyIndex: sys/bus/pci/pci.c
===================================================================
RCS file: /home/src/dcvs/src/sys/bus/pci/pci.c,v
retrieving revision 1.11
diff -u -3 -p -r1.11 pci.c
--- sys/bus/pci/pci.c	15 Jan 2004 20:35:06 -0000	1.11
+++ sys/bus/pci/pci.c	24 Feb 2004 13:29:24 -0000
@@ -352,7 +352,7 @@ pci_readcfg(pcicfgregs *probe)
 		cfg->subclass		= pci_cfgread(cfg, PCIR_SUBCLASS, 1);
 		cfg->progif		= pci_cfgread(cfg, PCIR_PROGIF, 1);
 		cfg->revid		= pci_cfgread(cfg, PCIR_REVID, 1);
-		cfg->hdrtype		= pci_cfgread(cfg, PCIR_HEADERTYPE, 1);
+		cfg->hdrtype		= pci_cfgread(cfg, PCIR_HDRTYPE, 1);
 		cfg->cachelnsz		= pci_cfgread(cfg, PCIR_CACHELNSZ, 1);
 		cfg->lattimer		= pci_cfgread(cfg, PCIR_LATTIMER, 1);
 		cfg->intpin		= pci_cfgread(cfg, PCIR_INTPIN, 1);




More information about the Kernel mailing list