Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/pci mark variables used
details: https://anonhg.NetBSD.org/src/rev/1a75fe33a8f5
branches: trunk
changeset: 791096:1a75fe33a8f5
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 04 16:58:14 2013 +0000
description:
mark variables used
diffstat:
sys/arch/alpha/pci/cia_dma.c | 7 ++++---
sys/arch/alpha/pci/pci_kn8ae.c | 5 +++--
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (64 lines):
diff -r 3fa2d0f6ebc8 -r 1a75fe33a8f5 sys/arch/alpha/pci/cia_dma.c
--- a/sys/arch/alpha/pci/cia_dma.c Mon Nov 04 16:57:41 2013 +0000
+++ b/sys/arch/alpha/pci/cia_dma.c Mon Nov 04 16:58:14 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cia_dma.c,v 1.28 2012/02/06 02:14:14 matt Exp $ */
+/* $NetBSD: cia_dma.c,v 1.29 2013/11/04 16:58:14 christos Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.28 2012/02/06 02:14:14 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.29 2013/11/04 16:58:14 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -424,7 +424,6 @@
void
cia_broken_pyxis_tlb_invalidate(void)
{
- volatile uint64_t dummy;
uint32_t ctrl;
int i, s;
@@ -447,9 +446,11 @@
* XXX to read more times than there are actual tags!
*/
for (i = 0; i < CIA_TLB_NTAGS + 4; i++) {
+ volatile uint64_t dummy;
dummy = *((volatile uint64_t *)
ALPHA_PHYS_TO_K0SEG(CIA_PCI_DENSE + CIA_PYXIS_BUG_BASE +
(i * 65536)));
+ __USE(dummy);
}
/*
diff -r 3fa2d0f6ebc8 -r 1a75fe33a8f5 sys/arch/alpha/pci/pci_kn8ae.c
--- a/sys/arch/alpha/pci/pci_kn8ae.c Mon Nov 04 16:57:41 2013 +0000
+++ b/sys/arch/alpha/pci/pci_kn8ae.c Mon Nov 04 16:58:14 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_kn8ae.c,v 1.27 2012/02/06 02:14:15 matt Exp $ */
+/* $NetBSD: pci_kn8ae.c,v 1.28 2013/11/04 16:58:14 christos Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.27 2012/02/06 02:14:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.28 2013/11/04 16:58:14 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -215,6 +215,7 @@
vec = IH_VEC(ih);
scb = &scb_iovectab[SCB_VECTOIDX(vec - SCB_IOVECBASE)];
+ __USE(scb);
kn8ae_enadis_intr(ccp, ih, 0);
Home |
Main Index |
Thread Index |
Old Index