repo.or.cz
/
cris-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git]
/
tools
/
virtio
/
linux
/
compiler.h
blob
903dc9c4bd115f196538138da3b32f30bcbd807e
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef LINUX_COMPILER_H
3
#define LINUX_COMPILER_H
4
5
#define WRITE_ONCE(var, val) \
6
(*((volatile typeof(val) *)(&(var))) = (val))
7
8
#define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
9
10
#endif