Xtensa_ESP32: Add definition for portMEMORY_BARRIER (#395)

This fixes crash observed in Amazon FreeRTOS when optimisations are enabled
pull/338/head^2
Shubham Kulkarni 3 years ago committed by GitHub
parent 1b86b39940
commit 741185f1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -554,6 +554,10 @@
#define configASSERT( x ) if( !( x ) ) { porttracePrint( -1 ); printf( "\nAssertion failed in %s:%d\n", __FILE__, __LINE__ ); exit( -1 ); }
#endif
/* Barriers */
#define portMEMORY_BARRIER() __asm volatile ( "" ::: "memory" )
#endif // __ASSEMBLER__
/* *INDENT-OFF* */

Loading…
Cancel
Save