Add a riscv define.
Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
This commit is contained in:
parent
5c4c3d9285
commit
b217eb9314
@ -138,6 +138,8 @@ typedef u_int32_t u32;
|
||||
#define MEMORY_BARRIER() dmb()
|
||||
#elif defined __aarch64__
|
||||
#define MEMORY_BARRIER() dmb(sy)
|
||||
#elif defined __riscv__
|
||||
#define MEMORY_BARRIER() fence()
|
||||
#else
|
||||
#error "Not supported platform"
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user