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 Make this compile again by ensuring that ...



details:   https://anonhg.NetBSD.org/src/rev/9d5f4c528719
branches:  trunk
changeset: 587295:9d5f4c528719
user:      he <he%NetBSD.org@localhost>
date:      Thu Jan 19 09:32:37 2006 +0000

description:
Make this compile again by ensuring that we don't cast away the volatile
qualifier.

diffstat:

 sys/arch/sparc/dev/cgfourteen.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 460cff9c3895 -r 9d5f4c528719 sys/arch/sparc/dev/cgfourteen.c
--- a/sys/arch/sparc/dev/cgfourteen.c   Thu Jan 19 00:19:13 2006 +0000
+++ b/sys/arch/sparc/dev/cgfourteen.c   Thu Jan 19 09:32:37 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgfourteen.c,v 1.42 2006/01/17 04:22:08 christos Exp $ */
+/*     $NetBSD: cgfourteen.c,v 1.43 2006/01/19 09:32:37 he Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -520,8 +520,8 @@
 static void
 cg14_init(struct cgfourteen_softc *sc)
 {
-       u_int32_t *clut;
-       u_int8_t  *xlut;
+       volatile u_int32_t *clut;
+       volatile u_int8_t  *xlut;
        int i;
 
        /*
@@ -535,8 +535,8 @@
        sc->sc_savectl = sc->sc_ctl->ctl_mctl;
        sc->sc_savehwc = sc->sc_hwc->curs_ctl;
 
-       clut = (u_int32_t *) sc->sc_clut1->clut_lut;
-       xlut = (u_int8_t *) sc->sc_xlut->xlut_lut;
+       clut = (volatile u_int32_t *) sc->sc_clut1->clut_lut;
+       xlut = (volatile u_int8_t *) sc->sc_xlut->xlut_lut;
        for (i = 0; i < CG14_CLUT_SIZE; i++) {
                sc->sc_saveclut.cm_chip[i] = clut[i];
                sc->sc_savexlut[i] = xlut[i];



Home | Main Index | Thread Index | Old Index