Module Name: src
Committed By: christos
Date: Wed Dec 24 16:18:46 UTC 2014
Modified Files:
src/tools/compat: compat_defs.h
Log Message:
add __UNVOLATILE
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/tools/compat/compat_defs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.99 src/tools/compat/compat_defs.h:1.100
--- src/tools/compat/compat_defs.h:1.99 Wed Sep 24 09:17:35 2014
+++ src/tools/compat/compat_defs.h Wed Dec 24 11:18:46 2014
@@ -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)