Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax remove volatile from softc. cleanup interr...



details:   https://anonhg.NetBSD.org/src/rev/380bc5568865
branches:  trunk
changeset: 480943:380bc5568865
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jan 23 18:53:11 2000 +0000

description:
remove volatile from softc.  cleanup interrupt initialization.

diffstat:

 sys/arch/vax/vax/ctu.c |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 48660f38984c -r 380bc5568865 sys/arch/vax/vax/ctu.c
--- a/sys/arch/vax/vax/ctu.c    Sun Jan 23 18:26:14 2000 +0000
+++ b/sys/arch/vax/vax/ctu.c    Sun Jan 23 18:53:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ctu.c,v 1.6 2000/01/21 23:39:57 thorpej Exp $ */
+/*     $NetBSD: ctu.c,v 1.7 2000/01/23 18:53:11 matt Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -68,7 +68,7 @@
        SC_RESTART,
 };
 
-volatile struct tu_softc {
+struct tu_softc {
        enum    tu_state sc_state;
        int     sc_error;
        char    sc_rsp[15];     /* Should be struct rsb; but don't work */
@@ -102,16 +102,15 @@
 void
 ctuattach()
 {
-       extern  struct ivec_dsp idsptch;
-
        BUFQ_INIT(&tu_sc.sc_q);
 
-       bcopy(&idsptch, &tu_recv, sizeof(struct ivec_dsp));
-       bcopy(&idsptch, &tu_xmit, sizeof(struct ivec_dsp));
+       tu_recv = idsptch;
+       tu_recv.hoppaddr = cturintr;
        scb->scb_csrint = (void *)&tu_recv;
+
+       tu_xmit = idsptch;
+       tu_xmit.hoppaddr = ctutintr;
        scb->scb_cstint = (void *)&tu_xmit;
-       tu_recv.hoppaddr = cturintr;
-       tu_xmit.hoppaddr = ctutintr;
 }
 
 int



Home | Main Index | Thread Index | Old Index