diff --git a/sys/arch/evbmips/loongson/autoconf.h b/sys/arch/evbmips/loongson/autoconf.h index 5cf727179697..ed89a01f1110 100644 --- a/sys/arch/evbmips/loongson/autoconf.h +++ b/sys/arch/evbmips/loongson/autoconf.h @@ -104,4 +104,7 @@ extern int comconsrate; extern phys_ram_seg_t mem_clusters[]; extern int mem_cluster_cnt; +int gdium_cnattach(bus_space_tag_t, bus_space_tag_t, + pci_chipset_tag_t, pcitag_t, pcireg_t); + #endif /* _MACHINE_AUTOCONF_H_ */ diff --git a/sys/arch/evbmips/loongson/machdep.c b/sys/arch/evbmips/loongson/machdep.c index 784c2d8a9c99..394bb2cbe18b 100644 --- a/sys/arch/evbmips/loongson/machdep.c +++ b/sys/arch/evbmips/loongson/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.2 2011/09/20 05:50:17 macallan Exp $ */ +/* $NetBSD: machdep.c,v 1.3 2011/09/20 05:51:34 macallan Exp $ */ /* * Copyright 2001, 2002 Wasabi Systems, Inc. @@ -90,7 +90,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 2011/09/20 05:50:17 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2011/09/20 05:51:34 macallan Exp $"); #include "opt_ddb.h" #include "opt_execfmt.h" @@ -513,6 +513,9 @@ mach_init(int32_t argc, int32_t argva, int32_t enva, int32_t callvec, sisfb_cnattach(&bonito_memt, &bonito_iot, &bonito_pc, pcitag, reg); #endif + if (cn_tab == &pmoncons) + gdium_cnattach(&bonito_memt, &bonito_iot, &bonito_pc, + pcitag, reg); } DPRINTF(("\n"));