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 an __UNVOLATILE() in atomic_set_bit...



details:   https://anonhg.NetBSD.org/src/rev/9b2b7aaba1e1
branches:  trunk
changeset: 581747:9b2b7aaba1e1
user:      he <he%NetBSD.org@localhost>
date:      Sat Jun 04 21:18:18 2005 +0000

description:
Add an __UNVOLATILE() in atomic_set_bit() usage.
Revisit if we can adjust atomic_set_bit()'s signature.

diffstat:

 sys/arch/arm/s3c2xx0/s3c2xx0_intr.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r f4896a9b9f43 -r 9b2b7aaba1e1 sys/arch/arm/s3c2xx0/s3c2xx0_intr.h
--- a/sys/arch/arm/s3c2xx0/s3c2xx0_intr.h       Sat Jun 04 20:36:15 2005 +0000
+++ b/sys/arch/arm/s3c2xx0/s3c2xx0_intr.h       Sat Jun 04 21:18:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s3c2xx0_intr.h,v 1.7 2004/02/12 03:47:29 bsh Exp $ */
+/*     $NetBSD: s3c2xx0_intr.h,v 1.8 2005/06/04 21:18:18 he Exp $ */
 
 /*
  * Copyright (c) 2002, 2003 Fujitsu Component Limited
@@ -167,7 +167,8 @@
 s3c2xx0_setsoftintr(int si)
 {
 
-       atomic_set_bit( (u_int *)&softint_pending, SI_TO_IRQBIT(si) );
+       atomic_set_bit( (u_int *)__UNVOLATILE(&softint_pending),
+               SI_TO_IRQBIT(si) );
 
        /* Process unmasked pending soft interrupts. */
        if (get_pending_softint())



Home | Main Index | Thread Index | Old Index