On Thu, 9 Aug 2007, Chuck Ebbert wrote: > > You can use this forget() macro to make the compiler reread a variable: > > #define forget(var) asm volatile ("" : "=m"(var)) No. That will also make the compiler "forget" any previous writes to it, so it changes behaviour. You'd have to use "+m". Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] make atomic_t volatile on all architectures
- From: Martin Schwidefsky <[email protected]>
- Re: [PATCH] make atomic_t volatile on all architectures
- References:
- [PATCH] make atomic_t volatile on all architectures
- From: Chris Snook <[email protected]>
- Re: [PATCH] make atomic_t volatile on all architectures
- From: Linus Torvalds <[email protected]>
- Re: [PATCH] make atomic_t volatile on all architectures
- From: Chris Snook <[email protected]>
- Re: [PATCH] make atomic_t volatile on all architectures
- From: Chuck Ebbert <[email protected]>
- [PATCH] make atomic_t volatile on all architectures
- Prev by Date: Re: [PATCH 11/14] CacheFiles: Permit an inode's security ID to be obtained [try #2]
- Next by Date: Re: [PATCH 11/14] CacheFiles: Permit an inode's security ID to be obtained [try #2]
- Previous by thread: Re: [PATCH] make atomic_t volatile on all architectures
- Next by thread: Re: [PATCH] make atomic_t volatile on all architectures
- Index(es):