Module Name:    src
Committed By:   pooka
Date:           Mon Apr 14 21:34:08 UTC 2014

Modified Files:
        src/sys/rump/dev/lib/libpci: pci_at_mainbus.c

Log Message:
be even more explicit about handling only bus 0


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/dev/lib/libpci/pci_at_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/dev/lib/libpci/pci_at_mainbus.c
diff -u src/sys/rump/dev/lib/libpci/pci_at_mainbus.c:1.2 src/sys/rump/dev/lib/libpci/pci_at_mainbus.c:1.3
--- src/sys/rump/dev/lib/libpci/pci_at_mainbus.c:1.2	Sun Apr 13 12:40:00 2014
+++ src/sys/rump/dev/lib/libpci/pci_at_mainbus.c	Mon Apr 14 21:34:08 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_at_mainbus.c,v 1.2 2014/04/13 12:40:00 pooka Exp $	*/
+/*	$NetBSD: pci_at_mainbus.c,v 1.3 2014/04/14 21:34:08 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_at_mainbus.c,v 1.2 2014/04/13 12:40:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_at_mainbus.c,v 1.3 2014/04/14 21:34:08 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -71,6 +71,7 @@ RUMP_COMPONENT(RUMP_COMPONENT_DEV_AFTERM
 
 	/* XXX: attach args should come from elsewhere */
 	memset(&pba, 0, sizeof(pba));
+	pba.pba_bus = 0;
 	pba.pba_iot = (bus_space_tag_t)0;
 	pba.pba_memt = (bus_space_tag_t)1;
 	pba.pba_dmat = (void *)0x20;

Reply via email to