]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - tools/virtio/linux/compiler.h
tools/virtio: use virt_xxx barriers
[karo-tx-linux.git] / tools / virtio / linux / compiler.h
1 #ifndef LINUX_COMPILER_H
2 #define LINUX_COMPILER_H
3
4 #define WRITE_ONCE(var, val) \
5         (*((volatile typeof(val) *)(&(var))) = (val))
6
7 #define READ_ONCE(var) (*((volatile typeof(val) *)(&(var))))
8
9 #endif