summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-03-31 21:57:58 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-03-31 21:57:58 +0000
commit643c207eee12a13fa8efdf9813bf1402785290ca (patch)
tree6df37c4c5f8e7e2d267018bcf78ac26fc3d2d7d7 /sys/arch/i386/pci
parentd1f46a5bae81083eb4d20a65b677c8159dadb2a2 (diff)
bzero pci attach args
Diffstat (limited to 'sys/arch/i386/pci')
-rw-r--r--sys/arch/i386/pci/pchb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/i386/pci/pchb.c b/sys/arch/i386/pci/pchb.c
index 6908385e735..085dbc2ac8f 100644
--- a/sys/arch/i386/pci/pchb.c
+++ b/sys/arch/i386/pci/pchb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pchb.c,v 1.75 2008/11/09 15:11:19 oga Exp $ */
+/* $OpenBSD: pchb.c,v 1.76 2009/03/31 21:57:57 kettenis Exp $ */
/* $NetBSD: pchb.c,v 1.65 2007/08/15 02:26:13 markd Exp $ */
/*
@@ -211,7 +211,6 @@ pchbattach(struct device *parent, struct device *self, void *aux)
* Configure it.
*/
pbnum = bdnum;
- pba.pba_bridgetag = NULL;
doattach = 1;
break;
}
@@ -371,13 +370,13 @@ pchbattach(struct device *parent, struct device *self, void *aux)
if (doattach == 0)
return;
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = pa->pa_iot;
pba.pba_memt = pa->pa_memt;
pba.pba_dmat = pa->pa_dmat;
pba.pba_domain = pa->pa_domain;
pba.pba_bus = pbnum;
- pba.pba_bridgetag = NULL;
pba.pba_pc = pa->pa_pc;
config_found(self, &pba, pchb_print);
#endif /* __i386__ */
@@ -438,13 +437,13 @@ pchb_amd64ht_attach(struct device *self, struct pci_attach_args *pa, int i)
reg = AMD64HT_LDT0_BUS + i * 0x20;
bus = pci_conf_read(pa->pa_pc, pa->pa_tag, reg);
if (AMD64HT_LDT_SEC_BUS_NUM(bus) > 0) {
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = pa->pa_iot;
pba.pba_memt = pa->pa_memt;
pba.pba_dmat = pa->pa_dmat;
pba.pba_domain = pa->pa_domain;
pba.pba_bus = AMD64HT_LDT_SEC_BUS_NUM(bus);
- pba.pba_bridgetag = NULL;
pba.pba_pc = pa->pa_pc;
config_found(self, &pba, pchb_print);
}