Skip to content

Commit a4b47aa

Browse files
committed
Add portMEMORY_BARRIER defination to fix over-optimization in xTaskResumeAll.
1 parent da3c35a commit a4b47aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

portable/ThirdParty/XCC/Xtensa/portmacro.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static inline unsigned portENTER_CRITICAL_NESTED() { unsigned state = XTOS_SET_I
114114
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
115115
#define portBYTE_ALIGNMENT 4
116116
#define portNOP() XT_NOP()
117+
#define portMEMORY_BARRIER() XT_MEMW()
117118
/*-----------------------------------------------------------*/
118119

119120
/* Fine resolution time */

0 commit comments

Comments
 (0)