From d0b5890006ac5ae84048821860db034b64f0600f Mon Sep 17 00:00:00 2001 From: nakayama Date: Wed, 10 Dec 2008 12:17:02 +0000 Subject: [PATCH] Add initialization of spc_busmax and spc_busnode in sparc_pci_chipset. --- sys/arch/sparc64/dev/schizo.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc64/dev/schizo.c b/sys/arch/sparc64/dev/schizo.c index 8b2b809a1f4d..1d81828621aa 100644 --- a/sys/arch/sparc64/dev/schizo.c +++ b/sys/arch/sparc64/dev/schizo.c @@ -1,4 +1,4 @@ -/* $NetBSD: schizo.c,v 1.2 2008/12/10 05:56:22 mrg Exp $ */ +/* $NetBSD: schizo.c,v 1.3 2008/12/10 12:17:02 nakayama Exp $ */ /* $OpenBSD: schizo.c,v 1.55 2008/08/18 20:29:37 brad Exp $ */ /* @@ -227,6 +227,11 @@ printf("mapped regs, sp_cfgh._ptr = %lx ._asi = %x ._sasi = %x\n", pbm->sp_cfgh. pbm->sp_pc = schizo_alloc_chipset(pbm, sc->sc_node, &_sparc_pci_chipset); + pbm->sp_pc->spc_busmax = busranges[1]; + pbm->sp_pc->spc_busnode = malloc(sizeof(*pbm->sp_pc->spc_busnode), + M_DEVBUF, M_NOWAIT | M_ZERO); + if (pbm->sp_pc->spc_busnode == NULL) + panic("schizo: malloc busnode"); pba.pba_bus = busranges[0]; pba.pba_bridgetag = NULL;