Added portMEMORY_BARRIER() implemented as __asm volatile( "" ::: "memory" ) into ARM GCC ports to assist with link time optimisation.

This commit is contained in:
Richard Barry 2019-04-21 20:15:34 +00:00
parent 606845492b
commit 84377442fc
11 changed files with 17 additions and 0 deletions

View file

@ -144,6 +144,8 @@ not necessary for to use this port. They are defined so the common demo files
#define portFORCE_INLINE inline __attribute__(( always_inline))
#endif
#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" )
#ifdef __cplusplus
}
#endif