GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
#ifndef __BARRIERS_H__
|
||||
#define __BARRIERS_H__
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#define ISB asm volatile ("isb sy" : : : "memory")
|
||||
#define DSB asm volatile ("dsb sy" : : : "memory")
|
||||
#define DMB asm volatile ("dmb sy" : : : "memory")
|
||||
|
||||
#define isb() ISB
|
||||
#define dsb() DSB
|
||||
#define dmb() DMB
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BARRIERS_H__ */
|
||||
Reference in New Issue
Block a user