summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-03-30 09:41:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-03-30 09:41:01 +0000
commita89fca3a0ff42f3808a217426b6e51a7c833658d (patch)
treef6b91e974e7b0578a3135e9b71b75b3c06f724f5 /sys/arch
parente163bf8e7372de45abb0696d9d29065cb2a030ec (diff)
bzero pci attach args
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sgi/pci/macepcibridge.c4
-rw-r--r--sys/arch/sgi/xbow/xbridge.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sgi/pci/macepcibridge.c b/sys/arch/sgi/pci/macepcibridge.c
index e1a63bf9339..f5f9ceb9ea4 100644
--- a/sys/arch/sgi/pci/macepcibridge.c
+++ b/sys/arch/sgi/pci/macepcibridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macepcibridge.c,v 1.17 2008/07/30 17:37:46 miod Exp $ */
+/* $OpenBSD: macepcibridge.c,v 1.18 2009/03/30 09:41:00 kettenis Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se)
@@ -244,6 +244,7 @@ mace_pcibrattach(struct device *parent, struct device *self, void *aux)
/*
* Configure our PCI devices.
*/
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = sc->sc_io_bus_space;
pba.pba_memt = sc->sc_mem_bus_space;
@@ -252,7 +253,6 @@ mace_pcibrattach(struct device *parent, struct device *self, void *aux)
pba.pba_pc = &sc->sc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = sc->sc_dev.dv_unit;
- pba.pba_bridgetag = NULL;
config_found(self, &pba, mace_pcibrprint);
/* Clear PCI errors and set up error interrupt */
diff --git a/sys/arch/sgi/xbow/xbridge.c b/sys/arch/sgi/xbow/xbridge.c
index 3882aa23230..51548e80692 100644
--- a/sys/arch/sgi/xbow/xbridge.c
+++ b/sys/arch/sgi/xbow/xbridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xbridge.c,v 1.4 2008/08/25 13:35:34 jsing Exp $ */
+/* $OpenBSD: xbridge.c,v 1.5 2009/03/30 09:41:00 kettenis Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
@@ -278,6 +278,7 @@ xbridge_attach(struct device *parent, struct device *self, void *aux)
* Attach children.
*/
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = sc->sc_io_bus_space;
pba.pba_memt = sc->sc_mem_bus_space;
@@ -285,7 +286,6 @@ xbridge_attach(struct device *parent, struct device *self, void *aux)
pba.pba_pc = &sc->sc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = sc->sc_dev.dv_unit;
- pba.pba_bridgetag = NULL;
config_found(self, &pba, xbridge_print);
return;