Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga Fix volatile casts



details:   https://anonhg.NetBSD.org/src/rev/0b76ce0d9fe7
branches:  trunk
changeset: 582023:0b76ce0d9fe7
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Jun 13 20:44:24 2005 +0000

description:
Fix volatile casts

diffstat:

 sys/arch/amiga/amiga/amiga_init.c |  6 +++---
 sys/arch/amiga/amiga/gayle.c      |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r ca8303cbd662 -r 0b76ce0d9fe7 sys/arch/amiga/amiga/amiga_init.c
--- a/sys/arch/amiga/amiga/amiga_init.c Mon Jun 13 20:44:11 2005 +0000
+++ b/sys/arch/amiga/amiga/amiga_init.c Mon Jun 13 20:44:24 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amiga_init.c,v 1.88 2004/06/11 12:23:10 is Exp $       */
+/*     $NetBSD: amiga_init.c,v 1.89 2005/06/13 20:44:24 jmc Exp $      */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -36,7 +36,7 @@
 #include "opt_devreload.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.88 2004/06/11 12:23:10 is Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amiga_init.c,v 1.89 2005/06/13 20:44:24 jmc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -908,7 +908,7 @@
        if (is_a3000()) {
                volatile unsigned char *a3000_magic_reset;
 
-               a3000_magic_reset = (unsigned char *)ztwomap(0xde0002);
+               a3000_magic_reset = (volatile unsigned char *)ztwomap(0xde0002);
 
                /* Turn SuperKick ROM (V36) back on */
                *a3000_magic_reset |= 0x80;
diff -r ca8303cbd662 -r 0b76ce0d9fe7 sys/arch/amiga/amiga/gayle.c
--- a/sys/arch/amiga/amiga/gayle.c      Mon Jun 13 20:44:11 2005 +0000
+++ b/sys/arch/amiga/amiga/gayle.c      Mon Jun 13 20:44:24 2005 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: gayle.c,v 1.4 2002/01/28 09:56:46 aymeric Exp $        */
+/*     $NetBSD: gayle.c,v 1.5 2005/06/13 20:44:24 jmc Exp $    */
 
 /* public domain */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gayle.c,v 1.4 2002/01/28 09:56:46 aymeric Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gayle.c,v 1.5 2005/06/13 20:44:24 jmc Exp $");
 
 /*
  * Gayle management routines
@@ -26,5 +26,5 @@
                return;
 
        gayle_base_virtual_address =
-               (struct gayle_struct *) ztwomap(GAYLE_PHYS_ADDRESS);
+           (struct gayle_struct *) __UNVOLATILE(ztwomap(GAYLE_PHYS_ADDRESS));
 }



Home | Main Index | Thread Index | Old Index