dashboard
repositories
activity
search
login
hc
/
RK356X_SDK_RELEASE
forked from
~ljy/RK356X_SDK_RELEASE
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
add do1-do7 di1 procfs
hc
2023-10-12
3124110e504ba82e43686669ed7188bcdbe72744
[~hc/RK356X_SDK_RELEASE.git]
/
kernel
/
tools
/
virtio
/
linux
/
compiler.h
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_COMPILER_H
#define LINUX_COMPILER_H
#define WRITE_ONCE(var, val) \
(*((volatile typeof(val) *)(&(var))) = (val))
#define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
#endif