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/016717f65fb7
branches:  trunk
changeset: 335080:016717f65fb7
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 5943f7f71fc3 -r 016717f65fb7 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