Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fix the size of psc_regs (0x3c >> 2 is the bigge...



details:   https://anonhg.NetBSD.org/src/rev/07d2405ba435
branches:  trunk
changeset: 574222:07d2405ba435
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Feb 24 08:04:02 2005 +0000

description:
Fix the size of psc_regs (0x3c >> 2 is the biggest index used to access
it now, so pick 0x40 >> 2). Fixes "Bug 6", reported by Ted Unangst on
tech-kern.

diffstat:

 sys/dev/pci/if_ex_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1cc3b26a557c -r 07d2405ba435 sys/dev/pci/if_ex_pci.c
--- a/sys/dev/pci/if_ex_pci.c   Thu Feb 24 06:06:11 2005 +0000
+++ b/sys/dev/pci/if_ex_pci.c   Thu Feb 24 08:04:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ex_pci.c,v 1.37 2004/08/21 23:48:33 thorpej Exp $   */
+/*     $NetBSD: if_ex_pci.c,v 1.38 2005/02/24 08:04:02 martin Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ex_pci.c,v 1.37 2004/08/21 23:48:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ex_pci.c,v 1.38 2005/02/24 08:04:02 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -79,7 +79,7 @@
        bus_space_handle_t sc_funch;
 
        pci_chipset_tag_t psc_pc;       /* pci chipset tag */
-       pcireg_t psc_regs[0x20>>2];     /* saved PCI config regs (sparse) */
+       pcireg_t psc_regs[0x40>>2];     /* saved PCI config regs (sparse) */
        pcitag_t psc_tag;               /* pci device tag */
 
        int psc_pwrmgmt_csr_reg;        /* ACPI power management register */



Home | Main Index | Thread Index | Old Index