diff options
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h index 66523a20..57e97f2b 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -950,4 +950,6 @@ void igt_kmsg(const char *format, ...); #define KMSG_INFO "<6>[IGT] " #define KMSG_DEBUG "<7>[IGT] " +#define READ_ONCE(x) (*(volatile typeof(x) *)(&(x))) + #endif /* IGT_CORE_H */ |