Fix volatile casts
This commit is contained in:
parent
43a300640c
commit
b75aff9bfb
|
@ -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 @@ start_c_finish()
|
|||
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;
|
||||
|
|
|
@ -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 @@ gayle_init(void) {
|
|||
return;
|
||||
|
||||
gayle_base_virtual_address =
|
||||
(struct gayle_struct *) ztwomap(GAYLE_PHYS_ADDRESS);
|
||||
(struct gayle_struct *) __UNVOLATILE(ztwomap(GAYLE_PHYS_ADDRESS));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue