Module Name:    xsrc
Committed By:   macallan
Date:           Thu May 20 20:05:34 UTC 2010

Modified Files:
        xsrc/external/mit/xf86-video-igs/dist/src: igs_accel.c

Log Message:
sprinkle some more volatile


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    xsrc/external/mit/xf86-video-igs/dist/src/igs_accel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-igs/dist/src/igs_accel.c
diff -u xsrc/external/mit/xf86-video-igs/dist/src/igs_accel.c:1.4 xsrc/external/mit/xf86-video-igs/dist/src/igs_accel.c:1.5
--- xsrc/external/mit/xf86-video-igs/dist/src/igs_accel.c:1.4	Thu May 20 19:45:21 2010
+++ xsrc/external/mit/xf86-video-igs/dist/src/igs_accel.c	Thu May 20 20:05:34 2010
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-/* $NetBSD: igs_accel.c,v 1.4 2010/05/20 19:45:21 macallan Exp $ */
+/* $NetBSD: igs_accel.c,v 1.5 2010/05/20 20:05:34 macallan Exp $ */
 
 #include <sys/types.h>
 
@@ -45,12 +45,12 @@
 
 static inline void IgsWrite2(IgsPtr fPtr, int offset, uint16_t val)
 {
-	*(uint16_t *)(fPtr->reg + offset) = val;
+	*(volatile uint16_t *)(fPtr->reg + offset) = val;
 }
 
 static inline void IgsWrite4(IgsPtr fPtr, int offset, uint32_t val)
 {
-	*(uint32_t *)(fPtr->reg + offset) = val;
+	*(volatile uint32_t *)(fPtr->reg + offset) = val;
 }
 
 static inline uint8_t IgsRead1(IgsPtr fPtr, int offset)
@@ -60,7 +60,7 @@
 
 static inline uint16_t IgsRead2(IgsPtr fPtr, int offset)
 {
-	return *(uint16_t *)(fPtr->reg + offset);
+	return *(volatile uint16_t *)(fPtr->reg + offset);
 }
 
 static void

Reply via email to