Add portMEMORY_BARRIER defination to fix over-optimization in xTaskResumeAll. (#1116)

Co-authored-by: owen <owen@freqchip.com>
This commit is contained in:
superroc 2024-08-12 19:36:47 +08:00 committed by GitHub
parent da3c35aa48
commit 190906aeaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,6 +114,7 @@ static inline unsigned portENTER_CRITICAL_NESTED() { unsigned state = XTOS_SET_I
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
#define portBYTE_ALIGNMENT 4 #define portBYTE_ALIGNMENT 4
#define portNOP() XT_NOP() #define portNOP() XT_NOP()
#define portMEMORY_BARRIER() XT_MEMW()
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* Fine resolution time */ /* Fine resolution time */