Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/s3c2xx0 Add use of an __UNVOLATILE() to appease...
details: https://anonhg.NetBSD.org/src/rev/70bf403f0cfe
branches: trunk
changeset: 581750:70bf403f0cfe
user: he <he%NetBSD.org@localhost>
date: Sat Jun 04 21:45:05 2005 +0000
description:
Add use of an __UNVOLATILE() to appease -Wcast-qual.
May be revisited if atomic_set_bit()'s signature can change.
diffstat:
sys/arch/arm/s3c2xx0/s3c2410_intr.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 33fcd92b5004 -r 70bf403f0cfe sys/arch/arm/s3c2xx0/s3c2410_intr.c
--- a/sys/arch/arm/s3c2xx0/s3c2410_intr.c Sat Jun 04 21:22:12 2005 +0000
+++ b/sys/arch/arm/s3c2xx0/s3c2410_intr.c Sat Jun 04 21:45:05 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: s3c2410_intr.c,v 1.3 2003/08/29 12:57:50 bsh Exp $ */
+/* $NetBSD: s3c2410_intr.c,v 1.4 2005/06/04 21:45:05 he Exp $ */
/*
* Copyright (c) 2003 Genetec corporation. All rights reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: s3c2410_intr.c,v 1.3 2003/08/29 12:57:50 bsh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: s3c2410_intr.c,v 1.4 2005/06/04 21:45:05 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -310,13 +310,15 @@
void
s3c2410_mask_subinterrupts(int bits)
{
- atomic_set_bit((uint32_t *)&icreg(INTCTL_INTSUBMSK), bits);
+ atomic_set_bit((uint32_t *)__UNVOLATILE(&icreg(INTCTL_INTSUBMSK)),
+ bits);
}
void
s3c2410_unmask_subinterrupts(int bits)
{
- atomic_clear_bit((uint32_t *)&icreg(INTCTL_INTSUBMSK), bits);
+ atomic_clear_bit((uint32_t *)__UNVOLATILE(&icreg(INTCTL_INTSUBMSK)),
+ bits);
}
/*
Home |
Main Index |
Thread Index |
Old Index