Xtensa_ESP32: Add definition for portMEMORY_BARRIER (#395)

This fixes crash observed in Amazon FreeRTOS when optimisations are enabled
This commit is contained in:
Shubham Kulkarni 2021-09-17 02:46:22 +05:30 committed by GitHub
parent 1b86b39940
commit 741185f1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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* */