Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev Add __UNVOLATILE() to an assignment with a...
details: https://anonhg.NetBSD.org/src/rev/8ae71c1c1a0b
branches: trunk
changeset: 581988:8ae71c1c1a0b
user: he <he%NetBSD.org@localhost>
date: Mon Jun 13 00:07:39 2005 +0000
description:
Add __UNVOLATILE() to an assignment with a cast before passing pointer
to a function.
diffstat:
sys/arch/x68k/dev/grf_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r f9e2ab660d49 -r 8ae71c1c1a0b sys/arch/x68k/dev/grf_machdep.c
--- a/sys/arch/x68k/dev/grf_machdep.c Sun Jun 12 23:46:41 2005 +0000
+++ b/sys/arch/x68k/dev/grf_machdep.c Mon Jun 13 00:07:39 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grf_machdep.c,v 1.21 2005/01/18 07:27:20 chs Exp $ */
+/* $NetBSD: grf_machdep.c,v 1.22 2005/06/13 00:07:39 he Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_machdep.c,v 1.21 2005/01/18 07:27:20 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_machdep.c,v 1.22 2005/06/13 00:07:39 he Exp $");
#include "locators.h"
@@ -253,9 +253,9 @@
caddr_t addr;
if (cfaddr == 0)
- addr = (caddr_t)IODEVbase->tvram;
+ addr = (caddr_t)__UNVOLATILE(IODEVbase->tvram);
else
- addr = (caddr_t)IODEVbase->gvram;
+ addr = (caddr_t)__UNVOLATILE(IODEVbase->gvram);
gsw = &grfsw[cfaddr];
if (gsw < &grfsw[ngrfsw] && (*gsw->gd_init)(gp, addr)) {
Home |
Main Index |
Thread Index |
Old Index