Module Name:    src
Committed By:   jakllsch
Date:           Wed Dec 25 17:24:39 UTC 2013

Modified Files:
        src/sys/arch/x86/pci: pci_machdep.c

Log Message:
Give cpu_comcnprobe a chance of working on Mode 2 PCI config space.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/x86/pci/pci_machdep.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/arch/x86/pci/pci_machdep.c
diff -u src/sys/arch/x86/pci/pci_machdep.c:1.62 src/sys/arch/x86/pci/pci_machdep.c:1.63
--- src/sys/arch/x86/pci/pci_machdep.c:1.62	Thu Oct 17 21:12:24 2013
+++ src/sys/arch/x86/pci/pci_machdep.c	Wed Dec 25 17:24:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep.c,v 1.62 2013/10/17 21:12:24 christos Exp $	*/
+/*	$NetBSD: pci_machdep.c,v 1.63 2013/12/25 17:24:39 jakllsch Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.62 2013/10/17 21:12:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.63 2013/12/25 17:24:39 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -970,7 +970,7 @@ cpu_comcnprobe(struct consdev *cn, struc
 	pci_mode_detect();
 	pa->pa_iot = x86_bus_space_io;
 	pa->pa_pc = 0;
-	pa->pa_tag = pci_make_tag(0, 0, 31, 0);
+	pa->pa_tag = pci_make_tag(0, 0, pci_bus_maxdevs(NULL, 0) - 1, 0);
 	return 0;
 }
 #endif

Reply via email to