From d5d707cf1d51ec52427ed7b2734da764ff91f485 Mon Sep 17 00:00:00 2001 From: onoe Date: Fri, 7 Dec 2001 08:07:57 +0000 Subject: [PATCH] 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. --- sys/arch/i386/pci/pci_intr_fixup.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/pci/pci_intr_fixup.c b/sys/arch/i386/pci/pci_intr_fixup.c index fb52c4ddb4bd..1a016a2a2c7c 100644 --- a/sys/arch/i386/pci/pci_intr_fixup.c +++ b/sys/arch/i386/pci/pci_intr_fixup.c @@ -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 -__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 @@ struct pciintr_link_map { 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 @@ const struct pciintr_icu_table { 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 },