Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev fkbyte() is in locore.s and accoring to i...



details:   https://anonhg.NetBSD.org/src/rev/e77e7b096a52
branches:  trunk
changeset: 581725:e77e7b096a52
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jun 04 04:59:18 2005 +0000

description:
fkbyte() is in locore.s and accoring to its description it's used
only for work around unexplained transient bus errors when reading
the VME interrupt vector in vmeintr4m(), so change the prototype
declaration of fkbyte() in vmeintr4m() to appease gcc -Wcast-qual.

diffstat:

 sys/arch/sparc/dev/vme_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 2288b9bd3ef8 -r e77e7b096a52 sys/arch/sparc/dev/vme_machdep.c
--- a/sys/arch/sparc/dev/vme_machdep.c  Sat Jun 04 04:40:57 2005 +0000
+++ b/sys/arch/sparc/dev/vme_machdep.c  Sat Jun 04 04:59:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vme_machdep.c,v 1.51 2004/12/13 02:14:13 chs Exp $     */
+/*     $NetBSD: vme_machdep.c,v 1.52 2005/06/04 04:59:18 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vme_machdep.c,v 1.51 2004/12/13 02:14:13 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vme_machdep.c,v 1.52 2005/06/04 04:59:18 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/extent.h>
@@ -711,8 +711,8 @@
        /* so, arrange to catch the fault... */
        {
        extern struct user *proc0paddr;
-       extern int fkbyte __P((caddr_t, struct pcb *));
-       caddr_t addr = (caddr_t)&ihp->sc->sc_vec->vmebusvec[level];
+       extern int fkbyte __P((volatile char *, struct pcb *));
+       volatile char *addr = &ihp->sc->sc_vec->vmebusvec[level];
        struct pcb *xpcb;
        u_long saveonfault;
        int s;



Home | Main Index | Thread Index | Old Index