global: add synchronisation barrier commands
This commit is contained in:
parent
06de8d0be9
commit
4fcfd29d2b
5
global.h
5
global.h
@ -9,6 +9,11 @@
|
||||
/** enable debugging functionalities */
|
||||
#define DEBUG true
|
||||
|
||||
/** Data Synchronization Barrier, ensure all data is written */
|
||||
#define __DSB() __asm__("dsb")
|
||||
/** Instruction Synchronization Barrier, ensure all instruction are run */
|
||||
#define __ISB() __asm__("isb")
|
||||
|
||||
/** get the length of an array */
|
||||
#define LENGTH(x) (sizeof(x) / sizeof((x)[0]))
|
||||
/** concatenate 2 arguments */
|
||||
|
Loading…
Reference in New Issue
Block a user