Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc Use volatile on device register access.
details: https://anonhg.NetBSD.org/src/rev/9bbf56f54554
branches: trunk
changeset: 746812:9bbf56f54554
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Aug 20 12:55:26 2009 +0000
description:
Use volatile on device register access.
diffstat:
sys/dev/tc/sfb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 378ec34eccee -r 9bbf56f54554 sys/dev/tc/sfb.c
--- a/sys/dev/tc/sfb.c Thu Aug 20 12:51:28 2009 +0000
+++ b/sys/dev/tc/sfb.c Thu Aug 20 12:55:26 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sfb.c,v 1.78 2008/12/17 20:51:35 cegger Exp $ */
+/* $NetBSD: sfb.c,v 1.79 2009/08/20 12:55:26 tsutsui Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sfb.c,v 1.78 2008/12/17 20:51:35 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sfb.c,v 1.79 2009/08/20 12:55:26 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -330,8 +330,8 @@
base = (void *)ri->ri_hw;
asic = base + SFB_ASIC_OFFSET;
- hsetup = *(u_int32_t *)(asic + SFB_ASIC_VIDEO_HSETUP);
- vsetup = *(u_int32_t *)(asic + SFB_ASIC_VIDEO_VSETUP);
+ hsetup = *(volatile u_int32_t *)(asic + SFB_ASIC_VIDEO_HSETUP);
+ vsetup = *(volatile u_int32_t *)(asic + SFB_ASIC_VIDEO_VSETUP);
vbase = 1;
SFBWRITE32(asic, SFB_ASIC_VIDEO_BASE, vbase);
Home |
Main Index |
Thread Index |
Old Index