summaryrefslogtreecommitdiffstats
path: root/src/include/util/lockfree/abaptr.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/util/lockfree/abaptr.H')
-rw-r--r--src/include/util/lockfree/abaptr.H8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/util/lockfree/abaptr.H b/src/include/util/lockfree/abaptr.H
index ed13f83ca..5ea5868ff 100644
--- a/src/include/util/lockfree/abaptr.H
+++ b/src/include/util/lockfree/abaptr.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -25,6 +25,12 @@
#ifndef __UTIL_LOCKFREE_ABAPTR_H
#define __UTIL_LOCKFREE_ABAPTR_H
+// This code makes assumptions on pointer sizes that are not valid within
+// our runtime environment, therefore it cannot ever be used there.
+#ifdef __HOSTBOOT_RUNTIME
+#error "AbaPtr is not allowed in HBRT"
+#endif
+
#include <stdint.h>
#include <assert.h>
OpenPOWER on IntegriCloud