Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat add __UNVOLATILE



details:   https://anonhg.NetBSD.org/src/rev/94d927f415aa
branches:  trunk
changeset: 805222:94d927f415aa
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 24 16:18:46 2014 +0000

description:
add __UNVOLATILE

diffstat:

 tools/compat/compat_defs.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 61568403f72b -r 94d927f415aa tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Wed Dec 24 14:01:10 2014 +0000
+++ b/tools/compat/compat_defs.h        Wed Dec 24 16:18:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.99 2014/09/24 13:17:35 christos Exp $        */
+/*     $NetBSD: compat_defs.h,v 1.100 2014/12/24 16:18:46 christos Exp $       */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -77,6 +77,11 @@
 #undef __UNCONST
 #endif
 #define __UNCONST(a)   ((void *)(unsigned long)(const void *)(a))
+#ifdef __UNVOLATILE
+#undef __UNVOLATILE
+#endif
+#define __UNVOLATILE(a)        ((void *)(unsigned long)(volatile void *)(a))
+
 
 #undef __predict_false
 #define __predict_false(x) (x)



Home | Main Index | Thread Index | Old Index