dashboard
repositories
activity
search
login
ljy
/
RK356X_SDK_RELEASE
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
add support ota
hc
2023-02-18
a08c8b75ee83d7f62c9aefc23bfb42082aa4076c
[~ljy/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