Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci Constify lpcib_devices[] so that it lands i...
details: https://anonhg.NetBSD.org/src/rev/d27c689aa2d8
branches: trunk
changeset: 319566:d27c689aa2d8
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Jun 03 10:13:54 2018 +0000
description:
Constify lpcib_devices[] so that it lands in .rodata (1584 bytes).
diffstat:
sys/arch/x86/pci/ichlpcib.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 46630d316f78 -r d27c689aa2d8 sys/arch/x86/pci/ichlpcib.c
--- a/sys/arch/x86/pci/ichlpcib.c Sun Jun 03 10:04:40 2018 +0000
+++ b/sys/arch/x86/pci/ichlpcib.c Sun Jun 03 10:13:54 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ichlpcib.c,v 1.51 2016/08/06 21:57:04 jakllsch Exp $ */
+/* $NetBSD: ichlpcib.c,v 1.52 2018/06/03 10:13:54 maxv Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.51 2016/08/06 21:57:04 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichlpcib.c,v 1.52 2018/06/03 10:13:54 maxv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -163,7 +163,7 @@
CFATTACH_DECL2_NEW(ichlpcib, sizeof(struct lpcib_softc),
lpcibmatch, lpcibattach, lpcibdetach, NULL, lpcibrescan, lpcibchilddet);
-static struct lpcib_device {
+static const struct lpcib_device {
pcireg_t vendor, product;
int has_rcba;
int has_ich5_hpet;
@@ -291,7 +291,7 @@
lpcibmatch(device_t parent, cfdata_t match, void *aux)
{
struct pci_attach_args *pa = aux;
- struct lpcib_device *lpcib_dev;
+ const struct lpcib_device *lpcib_dev;
/* We are ISA bridge, of course */
if (PCI_CLASS(pa->pa_class) != PCI_CLASS_BRIDGE ||
@@ -312,7 +312,7 @@
{
struct pci_attach_args *pa = aux;
struct lpcib_softc *sc = device_private(self);
- struct lpcib_device *lpcib_dev;
+ const struct lpcib_device *lpcib_dev;
pcireg_t pmbase;
sc->sc_pa = *pa;
Home |
Main Index |
Thread Index |
Old Index