Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/pci Add 82801BAM as piix.



details:   https://anonhg.NetBSD.org/src/rev/9eb2c8f135b5
branches:  trunk
changeset: 518884:9eb2c8f135b5
user:      onoe <onoe%NetBSD.org@localhost>
date:      Fri Dec 07 08:07:57 2001 +0000

description:
Add 82801BAM as piix.
Do not initialize global variables 'pciintr_icu_tag' to NULL.
Its type is 'const struct pciintr_icu *' (typedef'ed) and gcc sometimes(!)
put it in Text region.  So force arrrange it to BSS.

diffstat:

 sys/arch/i386/pci/pci_intr_fixup.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 55d6b9f772c9 -r 9eb2c8f135b5 sys/arch/i386/pci/pci_intr_fixup.c
--- a/sys/arch/i386/pci/pci_intr_fixup.c        Fri Dec 07 08:00:35 2001 +0000
+++ b/sys/arch/i386/pci/pci_intr_fixup.c        Fri Dec 07 08:07:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_intr_fixup.c,v 1.18 2001/11/15 07:03:34 lukem Exp $        */
+/*     $NetBSD: pci_intr_fixup.c,v 1.19 2001/12/07 08:07:57 onoe Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_intr_fixup.c,v 1.18 2001/11/15 07:03:34 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_intr_fixup.c,v 1.19 2001/12/07 08:07:57 onoe Exp $");
 
 #include "opt_pcibios.h"
 
@@ -98,7 +98,7 @@
        SIMPLEQ_ENTRY(pciintr_link_map) list;
 };
 
-pciintr_icu_tag_t pciintr_icu_tag = NULL;
+pciintr_icu_tag_t pciintr_icu_tag;
 pciintr_icu_handle_t pciintr_icu_handle;
 
 #ifdef PCIBIOS_IRQS_HINT
@@ -140,6 +140,8 @@
          piix_init },
        { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82801BA_LPC,
          piix_init },
+       { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82801BAM_LPC,
+         piix_init },
 
        { PCI_VENDOR_OPTI,      PCI_PRODUCT_OPTI_82C558,
          opti82c558_init },



Home | Main Index | Thread Index | Old Index