Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Hardware pointers must be volatile.



details:   https://anonhg.NetBSD.org/src/rev/d38ee6dc78ad
branches:  trunk
changeset: 572341:d38ee6dc78ad
user:      is <is%NetBSD.org@localhost>
date:      Thu Dec 30 10:07:51 2004 +0000

description:
Hardware pointers must be volatile.
Patch by Pawel Chwalowski via PR 28810, from a similar patch by Michael
Hitch to ite_cl.c.

diffstat:

 sys/arch/amiga/dev/ite_et.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e29add4bea73 -r d38ee6dc78ad sys/arch/amiga/dev/ite_et.c
--- a/sys/arch/amiga/dev/ite_et.c       Thu Dec 30 09:48:30 2004 +0000
+++ b/sys/arch/amiga/dev/ite_et.c       Thu Dec 30 10:07:51 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ite_et.c,v 1.7 2004/09/06 18:12:54 is Exp $ */
+/*     $NetBSD: ite_et.c,v 1.8 2004/12/30 10:07:51 is Exp $ */
 
 /*
  * Copyright (c) 1995 Ezra Story
@@ -36,7 +36,7 @@
 #include "opt_amigacons.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite_et.c,v 1.7 2004/09/06 18:12:54 is Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite_et.c,v 1.8 2004/12/30 10:07:51 is Exp $");
 
 #include "grfet.h"
 #if NGRFET > 0
@@ -157,7 +157,7 @@
        volatile unsigned char *ba = ip->grf->g_regkva;
        unsigned char *fb = ip->grf->g_fbkva;
        unsigned char attr;
-       unsigned char *cp;
+       volatile unsigned char *cp;
 
        if (ip->flags & ITE_INGRF)
                return;



Home | Main Index | Thread Index | Old Index